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