1xpapoll(3) SAORD Documentation xpapoll(3)
2
3
4
6 XPAPoll: execute existing XPA requests
7
9 #include <xpa.h>
10
11 int XPAPoll(int msec, int maxreq);
12
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 situ‐
16 ation, 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 XPAProcessS‐
23 elect() routine is called to process those requests. The maxreq value
24 determines how many requests will be processed: if maxreq < 0, then no
25 events are processed, but instead, the return value indicates the num‐
26 ber of events that are pending. If maxreq == 0, then all currently
27 pending requests will be processed. Otherwise, up to maxreq requests
28 will be processed. (The most usual values for maxreq are 0 to process
29 all requests and 1 to process one request).
30
32 See xpa(n) for a list of XPA help pages
33
34
35
36version 2.1.12 January 26, 2010 xpapoll(3)