static unsigned __stdcall wtfThreadEntryPoint(void* param) { OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param)); invocation->function(invocation->data); // Do the TLS cleanup. ThreadSpecificThreadExit(); return 0; }
static unsigned __stdcall wtfThreadEntryPoint(void* param) { OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param)); invocation->function(invocation->data); #if !USE(PTHREADS) && OS(WINDOWS) // Do the TLS cleanup. ThreadSpecificThreadExit(); #endif return 0; }
static unsigned __stdcall wtfThreadEntryPoint(void* param) { ThreadFunctionInvocation invocation = *static_cast<ThreadFunctionInvocation*>(param); delete static_cast<ThreadFunctionInvocation*>(param); void* result = invocation.function(invocation.data); #if !USE(PTHREADS) && OS(WINDOWS) // Do the TLS cleanup. ThreadSpecificThreadExit(); #endif return reinterpret_cast<unsigned>(result); }
static unsigned __stdcall wtfThreadEntryPoint(void* param) { OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(static_cast<ThreadFunctionInvocation*>(param)); void* result = invocation->function(invocation->data); //+EAWebKitChange //10/17/2011 #if !USE(PTHREADS) && (OS(WINDOWS) || defined(CS_UNDEFINED_STRING)) // Do the TLS cleanup. ThreadSpecificThreadExit(); #endif //-EAWebKitChange return reinterpret_cast<unsigned>(result); }