pike.git / lib / modules / Thread.pmod

version» Context lines:

pike.git/lib/modules/Thread.pmod:819:   {    int `!()    {    // Should be destructed when the mutex is, but we can't pull that    // off. Try to simulate it as well as possible.    if (dec_locks) return 0;    destruct (this);    return 1;    }    -  protected void destroy() +  protected void _destruct()    {    if (dec_locks) dec_locks();    }   }      /* Fallback implementation of Thread.Mutex */   optional class Mutex   {    protected int locks = 0;    protected void dec_locks() {locks--;}