* 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
This commit is contained in:
@@ -26,6 +26,8 @@
|
|||||||
Glues the registrar services together and dispatches the roster messages.
|
Glues the registrar services together and dispatches the roster messages.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
using namespace BPrivate;
|
||||||
|
|
||||||
//! Name of the event queue.
|
//! Name of the event queue.
|
||||||
static const char *kEventQueueName = "timer_thread";
|
static const char *kEventQueueName = "timer_thread";
|
||||||
|
|
||||||
@@ -278,9 +280,6 @@ main()
|
|||||||
{
|
{
|
||||||
FUNCTION_START();
|
FUNCTION_START();
|
||||||
|
|
||||||
// rename the main thread
|
|
||||||
rename_thread(find_thread(NULL), kRosterThreadName);
|
|
||||||
|
|
||||||
// create and run the registrar application
|
// create and run the registrar application
|
||||||
status_t error;
|
status_t error;
|
||||||
Registrar *app = new Registrar(&error);
|
Registrar *app = new Registrar(&error);
|
||||||
@@ -290,6 +289,9 @@ main()
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// rename the main thread
|
||||||
|
rename_thread(find_thread(NULL), kRosterThreadName);
|
||||||
|
|
||||||
PRINT(("app->Run()...\n"));
|
PRINT(("app->Run()...\n"));
|
||||||
app->Run();
|
app->Run();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user