示例#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
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
static void DaoCallServer_Init( DaoVmSpace *vms )
{
	DaoCGC_Start();
	daoCallServer = DaoCallServer_New( vms );
	DThread_Start( & daoCallServer->timer, (DThreadTask) DaoCallServer_Timer, NULL );
}