void* threadStarter(void *threadv) { Thread *thread = threadv; Object *callable = stackGetThisObject(thread); stackPop(thread); executeCallableExtern(callable, NULL, thread); removeThread(thread); return NULL; }
void threadStart(Thread *thread, RetainedObjectPointer callable) { thread->release(1); executeCallableExtern(callable.unretainedPointer(), nullptr, 0, thread); ThreadsManager::deallocateThread(thread); }