//----------------------------------------------------------------// void* _launcher ( void* param ) { MOAIThread* thread = ( MOAIThread* )param; MOAIThread::Func func = thread->GetMainFunc (); MOAIThreadState* threadState = thread->GetState (); func ( thread->GetParam (), *threadState ); return 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; }