BMessenger::Target() uses BLooperList now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@261 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Handler.h>
|
#include <Handler.h>
|
||||||
#include <Looper.h>
|
#include <Looper.h>
|
||||||
|
#include <LooperList.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
#include <Messenger.h>
|
#include <Messenger.h>
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
@@ -256,13 +257,8 @@ BMessenger::Target(BLooper **looper) const
|
|||||||
gDefaultTokens.GetToken(fHandlerToken, B_HANDLER_TOKEN,
|
gDefaultTokens.GetToken(fHandlerToken, B_HANDLER_TOKEN,
|
||||||
(void**)&handler);
|
(void**)&handler);
|
||||||
}
|
}
|
||||||
if (looper) {
|
if (looper)
|
||||||
if (BLooper::sLooperListLock.Lock()) {
|
*looper = BPrivate::gLooperList.LooperForPort(fPort);
|
||||||
*looper = BLooper::LooperForPort(fPort);
|
|
||||||
BLooper::sLooperListLock.Unlock();
|
|
||||||
} else
|
|
||||||
*looper = NULL;
|
|
||||||
}
|
|
||||||
} else if (looper)
|
} else if (looper)
|
||||||
*looper = NULL;
|
*looper = NULL;
|
||||||
return handler;
|
return handler;
|
||||||
|
|||||||
Reference in New Issue
Block a user