From 769ba00e93ed6b83d3063653c140a16cde34c5af Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 18 Jan 2005 01:17:35 +0000 Subject: [PATCH] * Changes due to moving RegistrarDefs stuff into the BPrivate namespace. * Rename the main thread after creating the BApplication. Then at least the roster will be ready for use. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10816 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/Registrar.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/servers/registrar/Registrar.cpp b/src/servers/registrar/Registrar.cpp index 6740409111..bcfeaea11b 100644 --- a/src/servers/registrar/Registrar.cpp +++ b/src/servers/registrar/Registrar.cpp @@ -26,6 +26,8 @@ Glues the registrar services together and dispatches the roster messages. */ +using namespace BPrivate; + //! Name of the event queue. static const char *kEventQueueName = "timer_thread"; @@ -278,9 +280,6 @@ main() { FUNCTION_START(); - // rename the main thread - rename_thread(find_thread(NULL), kRosterThreadName); - // create and run the registrar application status_t error; Registrar *app = new Registrar(&error); @@ -290,6 +289,9 @@ main() return 1; } + // rename the main thread + rename_thread(find_thread(NULL), kRosterThreadName); + PRINT(("app->Run()...\n")); app->Run();