void thread_start (void (*funcPtr)(void*), void* argPtr) { global_funcPtr = funcPtr; global_argPtr = argPtr; long threadId = 0; /* primary */ threadWait((void*)&threadId); }
TriggerRoot::~TriggerRoot() throw() { --(TriggerRoot::instanceCount); if (TriggerRoot::instanceCount == 0) { threadKill(); threadWait(); delete Ctrig; } }