pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:4494:    ADD_EFUN("set_thread_quanta", f_set_thread_quanta,    tFunc(tInt, tInt),    OPT_EXTERNAL_DEPEND);       /* Some constants... */    add_integer_constant("THREAD_NOT_STARTED", THREAD_NOT_STARTED, 0);    add_integer_constant("THREAD_RUNNING", THREAD_RUNNING, 0);    add_integer_constant("THREAD_EXITED", THREAD_EXITED, 0);    add_integer_constant("THREAD_ABORTED", THREAD_ABORTED, 0);    +  add_integer_constant("MUTEX_SUPPORTS_SHARED_LOCKS", 1, 0); +     original_interpreter = Pike_interpreter_pointer;    backend_thread_obj = fast_clone_object(thread_id_prog);    INIT_THREAD_STATE((struct thread_state *)(backend_thread_obj->storage +    thread_storage_offset));    thread_table_insert(Pike_interpreter.thread_state);   }      #ifdef DO_PIKE_CLEANUP   void cleanup_all_other_threads (void)   {