- Timestamp:
- Mar 15, 2011, 9:47:11 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/notifications/NotificationManager.cc
r7552 r8079 103 103 { 104 104 // Destroys all NotificationQueues that have been registered with the NotificationManager. 105 for(std::map<const std::string, NotificationQueue*>::iterator it = this->queues_.begin(); it != this->queues_.end(); it++) 105 std::map<const std::string, NotificationQueue*>::iterator it = this->queues_.begin(); 106 while(it != this->queues_.end()) 107 { 106 108 it->second->destroy(true); 109 it = this->queues_.begin(); 110 } 107 111 108 112 this->queues_.clear(); … … 298 302 } 299 303 304 COUT(4) << "NotificationListener '" << identifier << "' unregistered with the NotificationManager." << std::endl; 305 300 306 // Remove the NotificationListener from the list of NotificationListeners. 301 307 this->listenerList_.erase(listener); 302 308 // Remove the Notifications list that was associated with the input NotificationListener. 303 309 this->notificationLists_.erase(identifier); 304 305 COUT(4) << "NotificationListener unregistered with the NotificationManager." << std::endl;306 310 } 307 311 … … 361 365 bool NotificationManager::registerQueue(NotificationQueue* queue) 362 366 { 367 COUT(4) << "NotificationQueue '" << queue->getName() << "' registered with the NotificationManager." << std::endl; 363 368 return this->queues_.insert(std::pair<const std::string, NotificationQueue*>(queue->getName(), queue)).second; 364 369 } … … 372 377 void NotificationManager::unregisterQueue(NotificationQueue* queue) 373 378 { 379 COUT(4) << "NotificationQueue '" << queue->getName() << "' unregistered with the NotificationManager." << std::endl; 374 380 this->queues_.erase(queue->getName()); 375 381 }
Note: See TracChangeset
for help on using the changeset viewer.