1xpapoll(3)                    SAORD Documentation                   xpapoll(3)
2
3
4

NAME

6       XPAPoll: execute existing XPA requests
7

SYNOPSIS

9         #include <xpa.h>
10
11         int XPAPoll(int msec, int maxreq);
12

DESCRIPTION

14       It is sometimes desirable to implement a polling loop, i.e., where one
15       checks for and processes XPA requests without blocking.  For this
16       situation, use the XPAPoll() routine:
17
18         XPAPoll(int msec, int maxreq);
19
20       The XPAPoll() routine will perform XPAAddSelect() and select(), but
21       with a timeout specified in millisecs by the msec argument. If one or
22       more XPA requests are made before the timeout expires, the
23       XPAProcessSelect() routine is called to process those requests. The
24       maxreq value determines how many requests will be processed: if maxreq
25       < 0, then no events are processed, but instead, the return value
26       indicates the number of events that are pending.  If maxreq == 0, then
27       all currently pending requests will be processed.  Otherwise, up to
28       maxreq requests will be processed.  (The most usual values for maxreq
29       are 0 to process all requests and 1 to process one request).
30

SEE ALSO

32       See xpa(n) for a list of XPA help pages
33
34
35
36version 2.1.15                   July 23, 2013                      xpapoll(3)
Impressum