The thread, semaphore, and BLocker now have a name.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2864 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit
2003-03-02 12:23:20 +00:00
parent abe999d807
commit 44f46e0ce9
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ BMidiProducer::BMidiProducer(const char* name)
{ {
isConsumer = false; isConsumer = false;
connections = new BList; connections = new BList;
locker = new BLocker(); locker = new BLocker("MidiProducerLock");
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
+2 -1
View File
@@ -12,6 +12,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BMidiRosterLooper::BMidiRosterLooper() BMidiRosterLooper::BMidiRosterLooper()
: BLooper("MidiRosterLooper")
{ {
initLock = -1; initLock = -1;
roster = NULL; roster = NULL;
@@ -68,7 +69,7 @@ bool BMidiRosterLooper::Init(BMidiRoster* roster_)
// "app registered" message in our MessageReceived() hook, // "app registered" message in our MessageReceived() hook,
// we release the semaphore and MidiRoster() will unblock. // we release the semaphore and MidiRoster() will unblock.
initLock = create_sem(0, NULL); initLock = create_sem(0, "InitLock");
if (initLock < B_OK) if (initLock < B_OK)
{ {