Added NotificationQueue::remove function

This includes appropriate tests, which pass on my Mac 10.4 machine
This commit is contained in:
Mazyad Alabduljaleel
2015-08-06 14:13:11 +04:00
parent e438061ce7
commit 5cff648eea
4 changed files with 42 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ public:
void clear();
/// Removes all notifications from the queue.
bool remove(Notification::Ptr pNotification);
/// Removes a notification from the queue.
/// Returns true if remove succeeded, false otherwise
bool hasIdleThreads() const;
/// Returns true if the queue has at least one thread waiting
/// for a notification.