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:
@@ -79,8 +79,17 @@ ColorSet gGUIColorSet;
|
|||||||
*/
|
*/
|
||||||
AppServer::AppServer()
|
AppServer::AppServer()
|
||||||
: MessageLooper("app_server"),
|
: MessageLooper("app_server"),
|
||||||
|
fMessagePort(-1),
|
||||||
|
fServerInputPort(-1),
|
||||||
|
fISThreadID(-1),
|
||||||
|
fCursorThreadID(-1),
|
||||||
fCursorSem(-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);
|
fMessagePort = create_port(DEFAULT_MONITOR_PORT_SIZE, SERVER_PORT_NAME);
|
||||||
if (fMessagePort < B_OK)
|
if (fMessagePort < B_OK)
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
//! Initializes the CursorManager
|
//! Initializes the CursorManager
|
||||||
CursorManager::CursorManager()
|
CursorManager::CursorManager()
|
||||||
|
: BLocker("CursorManager")
|
||||||
{
|
{
|
||||||
// Error code for AddCursor
|
// Error code for AddCursor
|
||||||
fTokenizer.ExcludeValue(B_ERROR);
|
fTokenizer.ExcludeValue(B_ERROR);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ DecorInfo::Instantiate(Desktop* desktop, BRect rect, const char *title,
|
|||||||
|
|
||||||
|
|
||||||
DecorManager::DecorManager()
|
DecorManager::DecorManager()
|
||||||
:
|
: BLocker("DecorManager"),
|
||||||
fDecorList(0),
|
fDecorList(0),
|
||||||
fCurrentDecor(NULL)
|
fCurrentDecor(NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
DesktopSettings::Private::Private()
|
DesktopSettings::Private::Private()
|
||||||
: BLocker("desktop settings")
|
: BLocker("DesktopSettings_Private")
|
||||||
{
|
{
|
||||||
// if the on-disk settings are not complete, the defaults will be kept
|
// if the on-disk settings are not complete, the defaults will be kept
|
||||||
_SetDefaults();
|
_SetDefaults();
|
||||||
|
|||||||
@@ -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
|
\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)
|
FontStyle::FontStyle(const char *path, FT_Face face)
|
||||||
: BLocker(face->style_name),
|
: BLocker(BString("FontStyle_").Append(face->style_name).String()),
|
||||||
fFreeTypeFace(face),
|
fFreeTypeFace(face),
|
||||||
fName(face->style_name),
|
fName(face->style_name),
|
||||||
fPath(path),
|
fPath(path),
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ MultiLocker::MultiLocker(const char* semaphoreBaseName)
|
|||||||
sprintf(name, "%s-%s", semaphoreBaseName, "WriterLock");
|
sprintf(name, "%s-%s", semaphoreBaseName, "WriterLock");
|
||||||
fWriterLock = create_sem(0, name);
|
fWriterLock = create_sem(0, name);
|
||||||
} else {
|
} else {
|
||||||
fReadSem = create_sem(0, "ReadSem");
|
fReadSem = create_sem(0, "MultiLocker_ReadSem");
|
||||||
fWriteSem = create_sem(0, "WriteSem");
|
fWriteSem = create_sem(0, "MultiLocker_WriteSem");
|
||||||
fWriterLock = create_sem(0, "WriterLock");
|
fWriterLock = create_sem(0, "MultiLocker_WriterLock");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fReadSem >= 0 && fWriteSem >=0 && fWriterLock >= 0)
|
if (fReadSem >= 0 && fWriteSem >=0 && fWriterLock >= 0)
|
||||||
|
|||||||
@@ -10,12 +10,12 @@
|
|||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
UpdateQueue::UpdateQueue(HWInterface* interface)
|
UpdateQueue::UpdateQueue(HWInterface* interface)
|
||||||
: fInterface(interface),
|
: BLocker("AppServer_UpdateQueue"),
|
||||||
fUpdateRegion(),
|
fInterface(interface),
|
||||||
fUpdateExecutor(-1),
|
fUpdateRegion(),
|
||||||
fThreadControl(-1),
|
fUpdateExecutor(-1),
|
||||||
fStatus(B_ERROR)
|
fThreadControl(-1),
|
||||||
|
fStatus(B_ERROR)
|
||||||
{
|
{
|
||||||
fThreadControl = create_sem(0, "update queue control");
|
fThreadControl = create_sem(0, "update queue control");
|
||||||
if (fThreadControl >= B_OK)
|
if (fThreadControl >= B_OK)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// UpdateQueue.h
|
// UpdateQueue.h
|
||||||
|
|
||||||
#ifndef EVENT_QUEUE_H
|
#ifndef UPDATE_QUEUE_H
|
||||||
#define EVENT_QUEUE_H
|
#define UPDATE_QUEUE_H
|
||||||
|
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Locker.h>
|
#include <Locker.h>
|
||||||
@@ -33,4 +33,4 @@ class UpdateQueue : public BLocker {
|
|||||||
status_t fStatus;
|
status_t fStatus;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EVENT_QUEUE_H
|
#endif // UPDATE_QUEUE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user