コード例 #1
0
ファイル: MOAIThread_posix.cpp プロジェクト: LOFI/moai-dev
//----------------------------------------------------------------//
void* _launcher ( void* param ) {

	MOAIThread* thread = ( MOAIThread* )param;
	MOAIThread::Func func = thread->GetMainFunc ();
	MOAIThreadState* threadState = thread->GetState ();
	
	func ( thread->GetParam (), *threadState );
	
	return 0;
}
コード例 #2
0
//----------------------------------------------------------------//
void* _launcher ( void* param ) {

	MOAIThread* thread = ( MOAIThread* )param;
	MOAIThread::Func func = thread->GetMainFunc ();
	MOAIThreadState* threadState = thread->GetState ();
	
	MOAIThread::gThreadLocalStorage.SetCurrentThread ( thread );

	func ( thread->GetParam (), *threadState );
	
	return 0;
}