1EVS_DISPATCH(3) Corosync Cluster Engine Programmer's Manual EVS_DISPATCH(3)
2
3
4
6 evs_dispatch - Dispatches callbacks from the EVS service
7
9 #include <corosync/evs.h>
10
11 int evs_dispatch(evs_handle_t handle, evs_dispatch_t *dispatch_types);
12
14 The evs_dispatch function is used to dispatch configuration changes or
15 messages from the extended virtual synchrony API.
16
17 Each application may have several connections to the EVS API. Each
18 application uses the handle argument to uniquely identify the connec‐
19 tion.
20
21 The dispatch_types argument is used to identify the type of dispatch to
22 execute. The possible types are defined by the structure:
23
24
25 typedef enum {
26 EVS_DISPATCH_ONE,
27 EVS_DISPATCH_ALL,
28 EVS_DISPATCH_BLOCKING
29 } evs_dispatch_t;
30
31 The dispatch values have the following meanings:
32
33 EVS_DISPATCH_ONE
34 Dispatch atleast one callback, blocking until the callback is
35 dispatched.
36
37 EVS_DISPATCH_ALL
38 Dispatch all waiting callbacks without blocking to wait for any
39 callbacks.
40
41 EVS_DISPATCH_BLOCKING
42 Dispatch all callbacks blocking indefinately. This is used in a
43 threaded program where a thread is created, and then evs_dis‐
44 patch() is called immediately from the created thread to execute
45 callbacks.
46
47
49 This call returns the EVS_OK value if successful, otherwise an error is
50 returned.
51
53 The errors are undocumented.
54
56 evs_overview(8), evs_initialize(3), evs_finalize(3), evs_fd_get(3),
57 evs_join(3), evs_leave(3), evs_mcast_joined(3), evs_mcast_groups(3),
58 evs_mmembership_get(3) evs_context_get(3) evs_context_set(3)
59
60corosync Man Page 2004-08-31 EVS_DISPATCH(3)