ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.11
Committed: Fri Nov 23 19:13:33 2007 UTC (16 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_3
Changes since 1.10: +1 -4 lines
Log Message:
first try at embed watchers

File Contents

# User Rev Content
1 root 1.1 #define VARx(type,name) VAR(name, type name)
2    
3 root 1.2 VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
4     VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
5     VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
6 root 1.10 VARx(int, backend)
7 root 1.2
8 root 1.10 VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
9     VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
10     VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
11 root 1.11 VARx(int, backend_fd)
12 root 1.2
13 root 1.4 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
14 root 1.2 VARx(int, activecnt) /* number of active events */
15    
16     #if EV_USE_SELECT || EV_GENWRAP
17 root 1.8 VARx(void *, vec_ri)
18     VARx(void *, vec_ro)
19     VARx(void *, vec_wi)
20     VARx(void *, vec_wo)
21 root 1.2 VARx(int, vec_max)
22 root 1.1 #endif
23    
24 root 1.2 #if EV_USE_POLL || EV_GENWRAP
25     VARx(struct pollfd *, polls)
26     VARx(int, pollmax)
27     VARx(int, pollcnt)
28     VARx(int *, pollidxs) /* maps fds into structure indices */
29     VARx(int, pollidxmax)
30 root 1.1 #endif
31    
32 root 1.2 #if EV_USE_EPOLL || EV_GENWRAP
33     VARx(struct epoll_event *, epoll_events)
34     VARx(int, epoll_eventmax)
35 root 1.1 #endif
36    
37 root 1.2 #if EV_USE_KQUEUE || EV_GENWRAP
38     VARx(struct kevent *, kqueue_changes)
39     VARx(int, kqueue_changemax)
40     VARx(int, kqueue_changecnt)
41     VARx(struct kevent *, kqueue_events)
42     VARx(int, kqueue_eventmax)
43 root 1.1 #endif
44    
45 root 1.9 #if EV_USE_PORT || EV_GENWRAP
46     VARx(struct port_event *, port_events)
47     VARx(int, port_eventmax)
48     #endif
49    
50 root 1.2 VARx(ANFD *, anfds)
51     VARx(int, anfdmax)
52 root 1.1
53 root 1.2 VAR (pendings, ANPENDING *pendings [NUMPRI])
54     VAR (pendingmax, int pendingmax [NUMPRI])
55     VAR (pendingcnt, int pendingcnt [NUMPRI])
56 root 1.1
57 root 1.2 VARx(int *, fdchanges)
58     VARx(int, fdchangemax)
59     VARx(int, fdchangecnt)
60 root 1.1
61 root 1.2 VARx(struct ev_timer **, timers)
62     VARx(int, timermax)
63     VARx(int, timercnt)
64 root 1.1
65 root 1.7 #if EV_PERIODICS || EV_GENWRAP
66 root 1.2 VARx(struct ev_periodic **, periodics)
67     VARx(int, periodicmax)
68     VARx(int, periodiccnt)
69 root 1.7 #endif
70 root 1.1
71 root 1.2 VARx(struct ev_idle **, idles)
72     VARx(int, idlemax)
73     VARx(int, idlecnt)
74 root 1.1
75 root 1.2 VARx(struct ev_prepare **, prepares)
76     VARx(int, preparemax)
77     VARx(int, preparecnt)
78 root 1.1
79 root 1.2 VARx(struct ev_check **, checks)
80     VARx(int, checkmax)
81     VARx(int, checkcnt)
82 root 1.1
83     #undef VARx
84