static void DaoCallServer_Init( DaoVmSpace *vms ) { DaoCGC_Start(); daoCallServer = DaoCallServer_New( vms ); if( DThread_Start( & daoCallServer->timer, (DThreadTask) DaoCallServer_Timer, NULL ) ==0 ){ dao_abort( "failed to create the timer thread" ); } }
static void DaoCallServer_Init( DaoVmSpace *vms ) { DaoCGC_Start(); daoCallServer = DaoCallServer_New( vms ); /* Set it here, so that DaoCallServer_Stop() will not stop prematurally: */ daoCallServer->timing = 1; if( DThread_Start( & daoCallServer->timer, (DThreadTask) DaoCallServer_Timer, NULL ) ==0 ){ dao_abort( "failed to create the timer thread" ); } }
static void DaoTaskletServer_Init( DaoVmSpace *vms ) { DaoTaskletServer *server; DaoCGC_Start(); if( vms->taskletServer ) return; server = DaoTaskletServer_New( vms ); /* Set it here, so that DaoVmSpace_StopTasklets() will not stop prematurally: */ server->timing = 1; if( DThread_Start( & server->timer, (DThreadTask) DaoTaskletServer_Timer, server ) ==0 ){ dao_abort( "failed to create the timer thread" ); } vms->taskletServer = server; }
static void DaoCallServer_Init( DaoVmSpace *vms ) { DaoCGC_Start(); daoCallServer = DaoCallServer_New( vms ); DThread_Start( & daoCallServer->timer, (DThreadTask) DaoCallServer_Timer, NULL ); }