void
waitForEvents ()
Concurrency | rsSequentialConcurrency | Visibility | rsPrivate |
Code
static char anything;
if( ioMonitor.wait( (RTTimespec *)0 ) <= 0 ) // error
return;
if( ( ioMonitor.status( internalFd ) & RTIOMonitor::CanRead ) != 0 )
{
::recv( internalFd, &anything, 1, 0 );
return; // waked up
}
// custom IPC data to process here:
processIPCData();