nodeunlock.cc (282B)
1 #include "mutextree" 2 3 void MutexTree::nodeunlock(void *o, MutexNode *start) { 4 if (!start) 5 return; 6 7 if (start->obj() == o) 8 start->unlock(); 9 else if (start->obj() < o) 10 nodeunlock(o, start->left()); 11 else 12 nodeunlock(o, start->right()); 13 }