version 1.113, 2006/08/24 21:28:13
|
version 1.114, 2006/09/13 20:57:39
|
|
|
_entries[index]._status = status; | _entries[index]._status = status; |
} | } |
| |
Boolean Monitor::run(Uint32 milliseconds) |
void Monitor::run(Uint32 milliseconds) |
{ | { |
| |
Boolean handled_events = false; |
|
int i = 0; | int i = 0; |
| |
struct timeval tv = {milliseconds/1000, milliseconds%1000*1000}; | struct timeval tv = {milliseconds/1000, milliseconds%1000*1000}; |
|
|
// the array of entries can be changed. The ArrayIterator has be reset with the original _entries | // the array of entries can be changed. The ArrayIterator has be reset with the original _entries |
entries.reset(_entries); | entries.reset(_entries); |
entries[indx]._status = _MonitorEntry::IDLE; | entries[indx]._status = _MonitorEntry::IDLE; |
|
|
return true; |
|
} | } |
} | } |
catch(...) | catch(...) |
{ | { |
} | } |
handled_events = true; |
|
} | } |
} | } |
} | } |
|
|
return(handled_events); |
|
} | } |
| |
void Monitor::stopListeningForConnections(Boolean wait) | void Monitor::stopListeningForConnections(Boolean wait) |