コード例 #1
0
ファイル: daoTasklet.c プロジェクト: DawidvC/dao
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" );
	}
}
コード例 #2
0
ファイル: daoTasklet.c プロジェクト: carriercomm/dao
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" );
	}
}
コード例 #3
0
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;
}
コード例 #4
0
ファイル: daoTasklet.c プロジェクト: sanyaade-teachings/dao
static void DaoCallServer_Init( DaoVmSpace *vms )
{
	DaoCGC_Start();
	daoCallServer = DaoCallServer_New( vms );
	DThread_Start( & daoCallServer->timer, (DThreadTask) DaoCallServer_Timer, NULL );
}