if (threadEndQ) { PR_DestroyCondVar(threadEndQ); threadEndQ = NULL; } if (threadStartQ) { PR_DestroyCondVar(threadStartQ); threadStartQ = NULL;
if (threadQ) { PR_DestroyCondVar(threadQ); threadQ = NULL;
destroy_thread_data(void){    PORT_Memset(threads, 0, sizeof threads);    if (threadEndQ) {    	PR_DestroyCondVar(threadEndQ);	threadEndQ = NULL;    }    if (threadStartQ) {    	PR_DestroyCondVar(threadStartQ);	threadStartQ = NULL;    }    if (threadLock) {    	PR_DestroyLock(threadLock);	threadLock = NULL;    }}