pike.git / lib / modules / Thread.pmod

version» Context lines:

pike.git/lib/modules/Thread.pmod:891: Inside #if constant(thread_create)
      //! Blocks until the resource-counter dips to max @ref{level@}.    //!    //! @param level    //! The maximum level that is considered drained.    variant /*semi*/final void wait_till_drained(void|int level) {    while (_count > level) // Recheck before allowing further    _cond->wait(_mutex->lock());    }    -  // FIXME deprecated -  variant final /*__deprecated__*/ void wait_till_drained(MutexKey lock, void|int level) { -  wait_till_drained(level); -  } -  +     //! Increments the resource-counter.    //! @returns    //! A @[ResourceCountKey] to decrement the resource-counter again.    /*semi*/final ResourceCountKey acquire() {    _count++;    return ResourceCountKey(this);    }       /*semi*/private string _sprintf(int type) {    string res = UNDEFINED;