aqhome: more work on transformation to event2/ipc2.
This commit is contained in:
@@ -39,7 +39,7 @@ static void _signalReadyFdObjects(AQH_OBJECT_LIST2 *ol);
|
||||
* ------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void AQH_EventLoop_Run(AQH_EVENT_LOOP *eventLoop)
|
||||
void AQH_EventLoop_Run(AQH_EVENT_LOOP *eventLoop, int timeoutInMillisecs)
|
||||
{
|
||||
fd_set fdRead;
|
||||
fd_set fdWrite;
|
||||
@@ -56,8 +56,8 @@ void AQH_EventLoop_Run(AQH_EVENT_LOOP *eventLoop)
|
||||
if (highestFd>-1) {
|
||||
struct timeval tv;
|
||||
|
||||
tv.tv_sec=0;
|
||||
tv.tv_usec=200000;
|
||||
tv.tv_sec=timeoutInMillisecs/1000;
|
||||
tv.tv_usec=(timeoutInMillisecs%1000)*1000;
|
||||
rv=select(highestFd+1, &fdRead, &fdWrite, NULL, &tv);
|
||||
if (rv>0) {
|
||||
/* some fds became active */
|
||||
|
||||
Reference in New Issue
Block a user