pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1198:       cleanup_interpret(); /* Must be done before EXIT_THREAD_STATE */    Pike_interpreter.thread_state->status=THREAD_EXITED;    co_signal(&Pike_interpreter.thread_state->status_change);    thread_table_delete(Pike_interpreter.thread_state);    EXIT_THREAD_STATE(Pike_interpreter.thread_state);    Pike_interpreter.thread_state=NULL;    free_object(thread_obj);    thread_obj = NULL;    num_threads--; -  mt_unlock_interpreter(); +    #ifdef PIKE_DEBUG    Pike_interpreter_pointer = NULL;   #endif -  +  mt_unlock_interpreter();    }   }      PMOD_EXPORT void enable_external_threads(void)   {    num_threads++;   }      PMOD_EXPORT void disable_external_threads(void)   {