pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:463:    *! all threads.    *!    *! @note    *! You should make sure that the returned object is freed even if    *! some kind of error is thrown. That means in practice that it    *! should only have references (direct or indirect) from function    *! local variables. Also, it shouldn't be referenced from cyclic    *! memory structures, since those are only destructed by the periodic    *! gc. (This advice applies to mutex locks in general, for that    *! matter.) +  *! +  *! @seealso +  *! @[gethrdtime()]    */   void init_threads_disable(struct object *o)   {    low_init_threads_disable();       if(live_threads) {    SWAP_OUT_CURRENT_THREAD();    while (live_threads) {    THREADS_FPRINTF(0,    (stderr,