Mirror of :pserver:anonymous@cvs.schmorp.de/schmorpforge libev http://software.schmorp.de/pkg/libev.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.0 KiB

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