_PostMessage() was holding the BLooperList lock while calling
BMessenger::SendMessage(), which could lead to deadlocks (as in bug #1745). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -829,6 +829,7 @@ BLooper::_PostMessage(BMessage *msg, BHandler *handler,
|
|||||||
|
|
||||||
status_t status;
|
status_t status;
|
||||||
BMessenger messenger(handler, this, &status);
|
BMessenger messenger(handler, this, &status);
|
||||||
|
listLocker.Unlock();
|
||||||
if (status == B_OK)
|
if (status == B_OK)
|
||||||
status = messenger.SendMessage(msg, replyTo, 0);
|
status = messenger.SendMessage(msg, replyTo, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user