Assigned names to "some BLocker"s to aid debugging.

Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14703 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2005-11-04 16:56:15 +00:00
parent 89bdf57382
commit f38c001e56
8 changed files with 26 additions and 16 deletions

View File

@ -79,8 +79,17 @@ ColorSet gGUIColorSet;
*/
AppServer::AppServer()
: MessageLooper("app_server"),
fMessagePort(-1),
fServerInputPort(-1),
fISThreadID(-1),
fCursorThreadID(-1),
fCursorSem(-1),
fCursorArea(-1)
fCursorArea(-1),
fCursorAddr(NULL),
fDesktops(),
fDesktopLock("AppServerDesktopLock"),
fISASPort(-1),
fISPort(-1)
{
fMessagePort = create_port(DEFAULT_MONITOR_PORT_SIZE, SERVER_PORT_NAME);
if (fMessagePort < B_OK)

View File

@ -34,6 +34,7 @@
//! Initializes the CursorManager
CursorManager::CursorManager()
: BLocker("CursorManager")
{
// Error code for AddCursor
fTokenizer.ExcludeValue(B_ERROR);

View File

@ -103,7 +103,7 @@ DecorInfo::Instantiate(Desktop* desktop, BRect rect, const char *title,
DecorManager::DecorManager()
:
: BLocker("DecorManager"),
fDecorList(0),
fCurrentDecor(NULL)
{

View File

@ -16,7 +16,7 @@
DesktopSettings::Private::Private()
: BLocker("desktop settings")
: BLocker("DesktopSettings_Private")
{
// if the on-disk settings are not complete, the defaults will be kept
_SetDefaults();

View File

@ -26,7 +26,7 @@ const int32 kInvalidFamilyFlags = -1;
\param face FreeType handle for the font file after it is loaded - it will be kept open until the FontStyle is destroied
*/
FontStyle::FontStyle(const char *path, FT_Face face)
: BLocker(face->style_name),
: BLocker(BString("FontStyle_").Append(face->style_name).String()),
fFreeTypeFace(face),
fName(face->style_name),
fPath(path),

View File

@ -38,9 +38,9 @@ MultiLocker::MultiLocker(const char* semaphoreBaseName)
sprintf(name, "%s-%s", semaphoreBaseName, "WriterLock");
fWriterLock = create_sem(0, name);
} else {
fReadSem = create_sem(0, "ReadSem");
fWriteSem = create_sem(0, "WriteSem");
fWriterLock = create_sem(0, "WriterLock");
fReadSem = create_sem(0, "MultiLocker_ReadSem");
fWriteSem = create_sem(0, "MultiLocker_WriteSem");
fWriterLock = create_sem(0, "MultiLocker_WriterLock");
}
if (fReadSem >= 0 && fWriteSem >=0 && fWriterLock >= 0)

View File

@ -10,12 +10,12 @@
// constructor
UpdateQueue::UpdateQueue(HWInterface* interface)
: fInterface(interface),
fUpdateRegion(),
fUpdateExecutor(-1),
fThreadControl(-1),
fStatus(B_ERROR)
: BLocker("AppServer_UpdateQueue"),
fInterface(interface),
fUpdateRegion(),
fUpdateExecutor(-1),
fThreadControl(-1),
fStatus(B_ERROR)
{
fThreadControl = create_sem(0, "update queue control");
if (fThreadControl >= B_OK)

View File

@ -1,7 +1,7 @@
// UpdateQueue.h
#ifndef EVENT_QUEUE_H
#define EVENT_QUEUE_H
#ifndef UPDATE_QUEUE_H
#define UPDATE_QUEUE_H
#include <List.h>
#include <Locker.h>
@ -33,4 +33,4 @@ class UpdateQueue : public BLocker {
status_t fStatus;
};
#endif // EVENT_QUEUE_H
#endif // UPDATE_QUEUE_H