_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:
Ingo Weinhold
2008-02-04 21:12:19 +00:00
parent 350b6dbc3a
commit bd6a90a7e2
+1
View File
@@ -829,6 +829,7 @@ BLooper::_PostMessage(BMessage *msg, BHandler *handler,
status_t status;
BMessenger messenger(handler, this, &status);
listLocker.Unlock();
if (status == B_OK)
status = messenger.SendMessage(msg, replyTo, 0);