]> git.mxchange.org Git - simgear.git/blobdiff - simgear/threads/SGQueue.hxx
Introduce "PRESERVE" flag to protect properties on sim reset.
[simgear.git] / simgear / threads / SGQueue.hxx
index e7311e56d9f33c7130ecc32e1ae5609f9be33c3e..bcdda1d35fad5f52650671908c392ea62144f119 100644 (file)
@@ -283,6 +283,14 @@ public:
      */
     ~SGBlockingDeque() {}
 
+    /**
+     * 
+     */
+    virtual void clear() {
+    OpenThreads::ScopedLock<OpenThreads::Mutex> g(mutex);
+    this->queue.clear();
+    }
+    
     /**
      * 
      */