Allocate a dispatch handle, specifying a channel ID
#include <sys/iofunc.h>
#include <sys/dispatch.h>
dispatch_t *dispatch_create_channel( int chid,
unsigned reserved );
BlackBerry 10.0.0
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The dispatch_create_channel() function allocates and initializes a dispatch handle. The attach functions are:
If you wish, you can do a resmgr_attach() with a NULL path. This has the effect of initializing dispatch to receive messages, among other things.
This function is similar to dispatch_create() , but lets you specify a channel for the dispatch to use. It also lets you specify channel flags for name_attach().
A handle to a dispatch structure, or NULL if an error occurs.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |