sp_async_schedule_event
Last updated March 2020
Name
sp_async_schedule_event — Schedule an asynchronous event from any thread, and optionally dispatch the callback
Synopsis
#include "sp_async.h"
| void **sp_async_schedule_event** (
| e, | |
| | dispatch_mask)
; | |
Description
Schedule an event from any thread, and optionally dispatch the callback.
This adds the event scheduling and dispatch work to a queue in the Scheduler. The Scheduler will schedule and dispatch the event as soon as possible.
- e
-
The event.
- dispatch_mask
-
The event mask to pass to the event's callback. If non-zero, the callback is also dispatched, otherwise, the event is just scheduled.
This function returns void.
It is legal to call this function in any thread.
See Also
Was this page helpful?