ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.20
Committed: Sat Dec 22 05:48:03 2007 UTC (16 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.19: +5 -1 lines
Log Message:
*** empty log message ***

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 root 1.14 VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
6 root 1.20
7     VARx(ev_tstamp, io_blocktime);
8     VARx(ev_tstamp, timeout_blocktime);
9    
10 root 1.10 VARx(int, backend)
11 root 1.16 VARx(int, activecnt) /* total number of active events ("refcount") */
12 root 1.17 VARx(unsigned int, loop_count); /* total number of loop iterations/blocks */
13 root 1.2
14 root 1.20 VARx(int, backend_fd)
15 root 1.10 VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
16     VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
17     VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
18 root 1.2
19 root 1.16 #if !defined(_WIN32) || EV_GENWRAP
20     VARx(pid_t, curpid)
21     #endif
22    
23 root 1.4 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
24 root 1.2
25     #if EV_USE_SELECT || EV_GENWRAP
26 root 1.8 VARx(void *, vec_ri)
27     VARx(void *, vec_ro)
28     VARx(void *, vec_wi)
29     VARx(void *, vec_wo)
30 root 1.2 VARx(int, vec_max)
31 root 1.1 #endif
32    
33 root 1.2 #if EV_USE_POLL || EV_GENWRAP
34     VARx(struct pollfd *, polls)
35     VARx(int, pollmax)
36     VARx(int, pollcnt)
37     VARx(int *, pollidxs) /* maps fds into structure indices */
38     VARx(int, pollidxmax)
39 root 1.1 #endif
40    
41 root 1.2 #if EV_USE_EPOLL || EV_GENWRAP
42     VARx(struct epoll_event *, epoll_events)
43     VARx(int, epoll_eventmax)
44 root 1.1 #endif
45    
46 root 1.2 #if EV_USE_KQUEUE || EV_GENWRAP
47     VARx(struct kevent *, kqueue_changes)
48     VARx(int, kqueue_changemax)
49     VARx(int, kqueue_changecnt)
50     VARx(struct kevent *, kqueue_events)
51     VARx(int, kqueue_eventmax)
52 root 1.1 #endif
53    
54 root 1.9 #if EV_USE_PORT || EV_GENWRAP
55     VARx(struct port_event *, port_events)
56     VARx(int, port_eventmax)
57     #endif
58    
59 root 1.2 VARx(ANFD *, anfds)
60     VARx(int, anfdmax)
61 root 1.1
62 root 1.2 VAR (pendings, ANPENDING *pendings [NUMPRI])
63     VAR (pendingmax, int pendingmax [NUMPRI])
64     VAR (pendingcnt, int pendingcnt [NUMPRI])
65 root 1.1
66 root 1.2 VARx(int *, fdchanges)
67     VARx(int, fdchangemax)
68     VARx(int, fdchangecnt)
69 root 1.1
70 root 1.19 VARx(WT *, timers)
71 root 1.2 VARx(int, timermax)
72     VARx(int, timercnt)
73 root 1.1
74 root 1.12 #if EV_PERIODIC_ENABLE || EV_GENWRAP
75 root 1.19 VARx(WT *, periodics)
76 root 1.2 VARx(int, periodicmax)
77     VARx(int, periodiccnt)
78 root 1.7 #endif
79 root 1.1
80 root 1.18 #if EV_IDLE_ENABLE || EV_GENWRAP
81     VAR (idles, ev_idle **idles [NUMPRI])
82     VAR (idlemax, int idlemax [NUMPRI])
83     VAR (idlecnt, int idlecnt [NUMPRI])
84     #endif
85     VARx(int, idleall) /* total number */
86 root 1.1
87 root 1.2 VARx(struct ev_prepare **, prepares)
88     VARx(int, preparemax)
89     VARx(int, preparecnt)
90 root 1.1
91 root 1.2 VARx(struct ev_check **, checks)
92     VARx(int, checkmax)
93     VARx(int, checkcnt)
94 root 1.1
95 root 1.13 #if EV_FORK_ENABLE || EV_GENWRAP
96     VARx(struct ev_fork **, forks)
97     VARx(int, forkmax)
98     VARx(int, forkcnt)
99     #endif
100    
101 root 1.14 #if EV_USE_INOTIFY || EV_GENWRAP
102     VARx(int, fs_fd)
103 root 1.15 VARx(ev_io, fs_w)
104 root 1.14 VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
105     #endif
106    
107 root 1.1 #undef VARx
108