/******************************************************************************** * TvCtrlPointTimerLoop * * Description: * Function that runs in its own thread and monitors advertisement * and subscription timeouts for devices in the global device list. * * Parameters: * None * ********************************************************************************/ void * TvCtrlPointTimerLoop( void *args ) { int incr = 30; // how often to verify the timeouts, in seconds while( 1 ) { isleep( incr ); TvCtrlPointVerifyTimeouts( incr ); } }
void *TvCtrlPointTimerLoop(void *args) { /* how often to verify the timeouts, in seconds */ int incr = 30; while (TvCtrlPointTimerLoopRun) { isleep((unsigned int)incr); TvCtrlPointVerifyTimeouts(incr); } return NULL; args = args; }