pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2387:    *! @[Mutex], @[Condition]    */   #define THIS_KEY ((struct key_storage *)(CURRENT_STORAGE))   void init_mutex_key_obj(struct object *UNUSED(o))   {    THREADS_FPRINTF(1, (stderr, "KEY k:%p, t:%p\n",    THIS_KEY, Pike_interpreter.thread_state));    THIS_KEY->mut=0;    THIS_KEY->mutex_obj = NULL;    THIS_KEY->owner = Pike_interpreter.thread_state; -  add_ref(THIS_KEY->owner_obj = Pike_interpreter.thread_state->thread_obj); +  THIS_KEY->owner_obj = Pike_interpreter.thread_state->thread_obj; +  if (THIS_KEY->owner_obj) +  add_ref(THIS_KEY->owner_obj);    THIS_KEY->initialized=1;   }      void exit_mutex_key_obj(struct object *DEBUGUSED(o))   {    THREADS_FPRINTF(1, (stderr, "UNLOCK k:%p m:(%p) t:%p o:%p\n",    THIS_KEY, THIS_KEY->mut,    Pike_interpreter.thread_state, THIS_KEY->owner));    if(THIS_KEY->mut)    {