changed map and list templates to be more useable, however, they will

be rewritten soon. Changed debugging macros and use of them, too.
Also replaced the linked lists in the BufferManager (which were complicated,
but working ok) with template based ones.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-12-03 00:59:42 +00:00
parent 68bb610bbc
commit 353b9f6bce
26 changed files with 297 additions and 253 deletions
+5 -1
View File
@@ -7,7 +7,6 @@
#include <Message.h>
#include <Messenger.h>
#include <MediaNode.h>
#include <Debug.h>
#include "debug.h"
#include "NodeManager.h"
#include "DataExchange.h"
@@ -205,16 +204,21 @@ NotificationManager::CleanupTeam(team_id team)
TRACE("NotificationManager::CleanupTeam team %ld\n", team);
fLocker->Lock();
int debugcount = 0;
Notification n;
for (int32 index = 0; fNotificationList->GetAt(index, &n); index++) {
if (n.team == team) {
if (fNotificationList->Remove(index)) {
debugcount++;
index--;
} else {
ASSERT(false);
}
}
}
if (debugcount != 0)
FATAL("NotificationManager::CleanupTeam: removed %d notifications for team %ld\n", debugcount, team);
fLocker->Unlock();
}