pike.git / lib / modules / Thread.pmod

version» Context lines:

pike.git/lib/modules/Thread.pmod:872: Inside #if constant(thread_create)
   }   }      //! When this key is destroyed, the corresponding resource counter   //! will be decremented.   //!   //! @seealso   //! @[ResourceCount], @[MutexKey]   //!   optional class ResourceCountKey { + #if constant(Pike.DestructImmediate) +  private inherit Pike.DestructImmediate; + #endif    -  private inherit __builtin.DestructImmediate; -  +     /*semi*/private ResourceCount parent;       /*semi*/private void create(ResourceCount _parent) {    parent = _parent;    }       /*semi*/private void destroy() {    MutexKey key = parent->_mutex->lock();    --parent->_count;    parent->_cond->signal();