add: for (i = 0; i < LIFECYCLE_SIZE; i++) { pendingBirth[i] = NULL; pendingDeath[i] = NULL; } lifecycleMutex = CreateMutex ("Thread Lifecycle Mutex", SYNC_CLASS_RESOURCE);
context: InitThreadSystem (void){	NativeInitThreadSystem ();}