]> git.sesse.net Git - casparcg/blobdiff - common/blocking_priority_queue.h
Move from boost::thread to std::thread for nearly everything.
[casparcg] / common / blocking_priority_queue.h
index 33c5b989b61177213d0a55c70d6738e85283fc5d..4b41980bbbdaddb4f1eb7700b4e703f3752bcdff 100644 (file)
@@ -26,8 +26,6 @@
 
 #include <tbb/concurrent_queue.h>
 
-#include <boost/thread/mutex.hpp>
-
 #include "semaphore.h"
 
 namespace caspar {
@@ -49,7 +47,7 @@ private:
        size_type                                                                                                               capacity_;
        semaphore                                                                                                               space_available_        { capacity_ };
        semaphore                                                                                                               elements_available_     { 0u };
-       mutable boost::mutex                                                                                    capacity_mutex_;
+       mutable std::mutex                                                                                      capacity_mutex_;
 public:
        /**
         * Constructor.
@@ -189,7 +187,7 @@ public:
         */
        void set_capacity(size_type capacity)
        {
-               boost::unique_lock<boost::mutex> lock(capacity_mutex_);
+               std::unique_lock<std::mutex> lock(capacity_mutex_);
 
                if (capacity_ < capacity)
                {
@@ -211,7 +209,7 @@ public:
         */
        size_type capacity() const
        {
-               boost::unique_lock<boost::mutex> lock (capacity_mutex_);
+               std::unique_lock<std::mutex> lock (capacity_mutex_);
 
                return capacity_;
        }