… | |
… | |
57 | #if IOM_IDLE |
57 | #if IOM_IDLE |
58 | struct idle_watcher; |
58 | struct idle_watcher; |
59 | #endif |
59 | #endif |
60 | |
60 | |
61 | template<class watcher> |
61 | template<class watcher> |
62 | struct io_manager_vec : protected vector<watcher *> { |
62 | struct io_manager_vec : vector<watcher *> { |
63 | friend class io_manager; |
63 | #if IOM_CHECK |
64 | protected: |
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 | |