exit(status); }
PRUint32 bePriority;  PRThread* thred;  if (!_pr_initialized) _PR_ImplicitInitialization();  thred = PR_NEWZAP(PRThread); if (thred == NULL) { PR_SetError(PR_OUT_OF_MEMORY_ERROR, 0); return NULL; }  thred->md.joinSem = B_ERROR;  thred->arg = arg; thred->startFunc = start; thred->priority = priority;  if( state == PR_JOINABLE_THREAD ) { thred->state |= BT_THREAD_JOINABLE; }    PR_Lock( bt_book.ml );  if (type == PR_USER_THREAD) { bt_book.threadCount++; }  PR_Unlock( bt_book.ml );  bePriority = _bt_MapNSPRToNativePriority( priority );  thred->md.tid = spawn_thread((thread_func)_bt_root, "moz-thread", bePriority, thred); if (thred->md.tid < B_OK) { PR_SetError(PR_UNKNOWN_ERROR, thred->md.tid); PR_DELETE(thred); return NULL; }  if (resume_thread(thred->md.tid) < B_OK) { PR_SetError(PR_UNKNOWN_ERROR, 0); PR_DELETE(thred); return NULL; }  return thred; }
PR_IMPLEMENT(void)    PR_ProcessExit (PRIntn status){    exit(status);}