ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/iom.h
(Generate patch)

Comparing rxvt-unicode/src/iom.h (file contents):
Revision 1.7 by pcg, Sat Jan 17 01:20:01 2004 UTC vs.
Revision 1.10 by pcg, Mon Feb 9 07:11:49 2004 UTC

57#if IOM_IDLE 57#if IOM_IDLE
58struct idle_watcher; 58struct idle_watcher;
59#endif 59#endif
60 60
61template<class watcher> 61template<class watcher>
62struct io_manager_vec : protected vector<watcher *> { 62struct io_manager_vec : vector<watcher *> {
63 friend class io_manager; 63#if IOM_CHECK
64protected: 64 bool activity;
65#endif
66
65 void erase_unordered (unsigned int pos) 67 void erase_unordered (unsigned int pos)
66 { 68 {
67 watcher *w = (*this)[size () - 1]; 69 watcher *w = (*this)[size () - 1];
68 pop_back (); 70 pop_back ();
69 71
156 void start (tstamp when) { set (when); iom.reg (this); } 158 void start (tstamp when) { set (when); iom.reg (this); }
157 void stop () { iom.unreg (this); } 159 void stop () { iom.unreg (this); }
158 160
159 template<class O1, class O2> 161 template<class O1, class O2>
160 time_watcher (O1 *object, void (O2::*method)(time_watcher &)) 162 time_watcher (O1 *object, void (O2::*method)(time_watcher &))
161 : callback1<void, time_watcher &>(object,method) 163 : callback1<void, time_watcher &>(object,method), at(0)
162 { } 164 { }
163 ~time_watcher () { stop (); } 165 ~time_watcher () { stop (); }
164}; 166};
165#endif 167#endif
166 168

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines