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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user