ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.16
Committed: Thu Nov 29 17:28:13 2007 UTC (16 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.15: +5 -1 lines
Log Message:
implement EVFLAG_FORKCHECK

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