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 }