crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

lock.cc (338B)


      1 #include "mutextree"
      2 
      3 void MutexTree::lock(void *o) {
      4 #   ifdef DEBUG
      5     debugmsg("Mutex: locking object: " << o <<
      6 	     " (this=" << this << ", root=" << _root << ")\n");
      7 #   endif    
      8     locktree();
      9     _root = nodelock(o, _root);
     10     unlocktree();
     11 #   ifdef DEBUG
     12     debugmsg("Mutex: object " << o << " locked\n");
     13 #   endif    
     14 }