diff options
Diffstat (limited to 'src/uscxml/concurrency/BlockingQueue.h')
-rw-r--r-- | src/uscxml/concurrency/BlockingQueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uscxml/concurrency/BlockingQueue.h b/src/uscxml/concurrency/BlockingQueue.h index a77bfb7..fc62fce 100644 --- a/src/uscxml/concurrency/BlockingQueue.h +++ b/src/uscxml/concurrency/BlockingQueue.h @@ -57,6 +57,11 @@ public: return ret; } + virtual void clear() { + tthread::lock_guard<tthread::mutex> lock(_mutex); + _queue.clear(); + } + virtual bool isEmpty() { tthread::lock_guard<tthread::mutex> lock(_mutex); return _queue.empty(); |