pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2407:    push_undefined();    return;    }    if (m->key && OB2KEY(m->key)->owner) {    push_static_text("Thread.Mutex(/*locked by 0x");    push_int64(PTR_TO_INT(THREAD_T_TO_PTR(OB2KEY(m->key)->owner->id)));    f_int2hex(1);    push_static_text("*/)");    f_add(3);    } else { -  push_static_text("Thread.Mutex()"); +  push_static_text("Thread.Mutex(/* Unlocked */)");    }   }      /*! @decl Condition cond()    *!    *! Create a @[Condition].    *!    *! This function is equivalent to    *! @code    *! Thread.Condition(mux);
pike.git/src/threads.c:2587:   {    int c = 0;    if(args>0 && TYPEOF(Pike_sp[-args]) == PIKE_T_INT)    c = Pike_sp[-args].u.integer;    pop_n_elems (args);    if(c != 'O') {    push_undefined();    return;    }    if (THIS_KEY->mutex_obj) { -  push_text("MutexKey(/* %O */)"); +  push_text("Thread.MutexKey(/* %O */)");    ref_push_object(THIS_KEY->mutex_obj);    f_sprintf(2);    } else { -  push_text("MutexKey()"); +  push_text("Thread.MutexKey(/* Unlocked */)");    }   }      /*! @endclass    */      struct rwmutex_key_storage   {    struct rwmutex_storage *rwmutex;    struct object *rwmutex_obj;
pike.git/src/threads.c:2845:      static void f_rwmutex_rkey__sprintf(INT32 args)   {    int c = 0;    get_all_args("_sprintf", args, "%d", &c);    if (c != 'O') {    push_undefined();    return;    }    if (THIS_RWKEY->rwmutex_obj) { -  push_text("ReadKey(/* %O */)"); +  push_text("Thread.ReadKey(/* %O */)");    ref_push_object(THIS_RWKEY->rwmutex_obj);    f_sprintf(2);    } else { -  push_text("ReadKey()"); +  push_text("Thread.ReadKey(/* Unlocked */)");    }   }      /*! @endclass    */      /*! @class WriteKey    */      static void exit_rwmutex_wkey_obj(struct object *UNUSED(o))
pike.git/src/threads.c:2972:      static void f_rwmutex_wkey__sprintf(INT32 args)   {    int c = 0;    get_all_args("_sprintf", args, "%d", &c);    if (c != 'O') {    push_undefined();    return;    }    if (THIS_RWKEY->rwmutex_obj) { -  push_text("WriteKey(/* %O */)"); +  push_text("Thread.WriteKey(/* %O */)");    ref_push_object(THIS_RWKEY->rwmutex_obj);    f_sprintf(2);    } else { -  push_text("WriteKey()"); +  push_text("Thread.WriteKey(/* Unlocked */)");    }   }      /*! @endclass    */      /*! @class Condition    *!    *! Implementation of condition variables.    *!