#include <completion_notify.h>

Public Member Functions | |
| void | on_completion (unsigned p_code) |
| void | setup (t_receiver *p_receiver, unsigned p_task_id) |
| void | orphan () |
| void completion_notify_impl< t_receiver >::on_completion | ( | unsigned | p_code | ) | [inline, virtual] |
Called when an async operation has been completed. Note that on_completion is always called from main thread. You can use on_completion_async() helper if you need to signal completion while your context is in another thread.
IMPLEMENTATION WARNING: If process being completed creates a window taking caller's window as parent, you must not destroy the parent window inside on_completion(). If you need to do so, use PostMessage() or main_thread_callback to delay the deletion.
| p_code | Context-specific status code. Possible values depend on the operation being performed. |
Implements completion_notify.
| void completion_notify_impl< t_receiver >::setup | ( | t_receiver * | p_receiver, | |
| unsigned | p_task_id | |||
| ) | [inline] |
| void completion_notify_impl< t_receiver >::orphan | ( | ) | [inline, virtual] |
Implements completion_notify_orphanable.
1.5.5