use the timer queue manager
This commit is contained in:
parent
36ed114f49
commit
7df3b620e2
1 changed files with 1 additions and 9 deletions
|
@ -42,17 +42,9 @@ void OtkApplication::loadStyle(void)
|
|||
|
||||
void OtkApplication::exec(void)
|
||||
{
|
||||
const int xfd = ConnectionNumber(OBDisplay::display);
|
||||
fd_set rfds;
|
||||
timeval *timeout = 0;
|
||||
|
||||
while (1) {
|
||||
dispatchEvents();
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
FD_SET(xfd, &rfds);
|
||||
|
||||
select(xfd + 1, &rfds, 0, 0, timeout);
|
||||
_timer_manager->fire(); // fire pending events
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue