1VOTEQUORUM_DISPATCHC(o3r)osync Cluster Engine Programmer's MaVnOuTaElQUORUM_DISPATCH(3)
2
3
4

NAME

6       votequorum_dispatch - Dispatches callbacks from the votequorum service
7

SYNOPSIS

9       #include <corosync/votequorum.h>
10
11       int   votequorum_dispatch(votequorum_handle_t  handle,  votequorum_dis‐
12       patch_t *dispatch_types);
13

DESCRIPTION

15       The votequorum_dispatch function  is  used  to  dispatch  configuration
16       changes.
17
18       Each  application  may  have several connections to the votequorum API.
19       Each  application uses the handle argument  to  uniquely  identify  the
20       connection.
21
22       The dispatch_types argument is used to identify the type of dispatch to
23       execute.  The possible types are defined by the structure:
24
25
26              typedef enum {
27                      CS_DISPATCH_ONE,
28                      CS_DISPATCH_ALL,
29                      CS_DISPATCH_BLOCKING
30              } votequorum_dispatch_t;
31
32       The dispatch values have the following meanings:
33
34       CS_DISPATCH_ONE
35              Dispatch at least one callback, blocking until the  callback  is
36              dispatched.
37
38       CS_DISPATCH_ALL
39              Dispatch  all waiting callbacks without blocking to wait for any
40              callbacks.
41
42       CS_DISPATCH_BLOCKING
43              Dispatch all callbacks blocking indefinitely.  This is used in a
44              threaded  program  where  a thread is created, and then votequo‐
45              rum_dispatch() is called immediately from the created thread  to
46              execute callbacks.
47
48

RETURN VALUE

50       This  call returns the CS_OK value if successful, otherwise an error is
51       returned.
52

ERRORS

54       The errors are undocumented.
55

SEE ALSO

57       votequorum_overview(8),   votequorum_initialize(3),   votequorum_final‐
58       ize(3), votequorum_fd_get(3),
59
60
61corosync Man Page                 2009-01-26            VOTEQUORUM_DISPATCH(3)
Impressum