Addressed a deadlock race condition: Acquiration of condition variable

and thread spinlock was reverse in Wait() and Notify(). The thread lock
is now the outer lock -- this way it is still possible to call Notify()
with the thread lock being held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22401 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-10-01 22:24:42 +00:00
parent 1c118ebc62
commit d0c2af7713
3 changed files with 13 additions and 32 deletions
+1 -2
View File
@@ -82,8 +82,7 @@ protected:
void Notify(bool all, bool threadsLocked);
private:
void _Notify(bool all, bool threadsLocked,
status_t result);
void _Notify(bool all, status_t result);
protected:
const void* fObject;