The Publish and Subscribe Dispatcher API includes one definition and four functions:
The only thread dispatcher supported is GDisp (libasync).
A publish and subscribe dispatcher.
typedef struct pas_dispatcher_struct pas_dispatcher_t;
None.
Nothing.
Creates or advertises a dispatcher.
pas_dispatcher_t *pas_dispatcher_new (void *disp);
dispcx |
The dispatcher context. If NULL,to start dispatching notifications, the application must call pas_dispatch. If not NULL, the dispatcher is a libasync dispatcher. |
The dispatcher to use when creating publishers or subscribers (pas_dispatcher_t).
Destroys a dispatcher created with pas_dispatcher_new.
void pas_dispatcher_delete (pas_dispatcher_t *disp);
disp |
The event notification client environment. |
Nothing.
Starts the dispatch loop of an event notification environment. It has no effect if the application uses its own thread pool.
void pas_dispatch (pas_dispatcher_t *disp);
disp |
The new dispatcher. |
Nothing.
Stops the dispatch loop of an event notification environment started with pas_dispatch. It has no effect if an application-provided dispatcher was passed to pas_dispatcher_new.
void pas_shutdown (pas_dispatcher_t *disp);
disp |
The dispatcher context to shutdown. |
Nothing.