File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class Spinlock {
46
46
template <typename T>
47
47
class ConcurrentBlockingQueue {
48
48
public:
49
- ConcurrentBlockingQueue () = default ;
49
+ ConcurrentBlockingQueue ();
50
50
~ConcurrentBlockingQueue () = default ;
51
51
/* !
52
52
* \brief Push element into the queue.
@@ -83,7 +83,7 @@ class ConcurrentBlockingQueue {
83
83
private:
84
84
std::mutex mutex_;
85
85
std::condition_variable cv_;
86
- std::atomic<bool > exit_now_{ false } ;
86
+ std::atomic<bool > exit_now_;
87
87
std::list<T> queue_;
88
88
/* !
89
89
* \brief Disable copy and move.
@@ -100,6 +100,9 @@ inline void Spinlock::unlock() noexcept {
100
100
lock_.clear (std::memory_order_release);
101
101
}
102
102
103
+ template <typename T>
104
+ ConcurrentBlockingQueue<T>::ConcurrentBlockingQueue() : exit_now_{false } {}
105
+
103
106
template <typename T>
104
107
template <typename E>
105
108
void ConcurrentBlockingQueue<T>::Push(E&& e) {
You can’t perform that action at this time.
0 commit comments