Changeset 366
- Timestamp:
- 06/06/07 23:43:30 (2 years ago)
- Files:
-
- version_0/ext/em.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/ext/em.h
r336 r366 77 77 void SetTimerQuantum (int); 78 78 static void SetuidString (const char*); 79 static int SetRlimitNofile (int); 80 81 // Temporary: 82 void _UseEpoll(); 83 void _ModifyEpollEvent (EventableDescriptor*); 79 84 80 85 /* … … 98 103 void _ReadLoopBreaker(); 99 104 105 bool _RunSelectOnce(); 106 bool _RunEpollOnce(); 107 100 108 private: 101 109 enum { 102 110 MaxOutstandingTimers = 1000, 103 HeartbeatInterval = 2 111 HeartbeatInterval = 2, 112 MaxEpollDescriptors = 64*1024 104 113 }; 105 114 void (*EventCallback)(const char*, int, const char*, int); … … 121 130 122 131 timeval Quantum; 132 133 private: 134 bool bEpoll; 135 int epfd; // Epoll file-descriptor 123 136 }; 124 137