Skip to content

Commit 384e753

Browse files
committed
Update thread_safe_deque.hpp
1 parent bcd9432 commit 384e753

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/internal/thread_safe_deque.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#pragma once
9+
#include <atomic>
910
#include <condition_variable>
1011
#include <deque>
1112
#include <mutex>
@@ -98,7 +99,7 @@ namespace csv {
9899
}
99100

100101
private:
101-
bool _is_waitable = false;
102+
std::atomic<bool> _is_waitable{ false };
102103
size_t _notify_size;
103104
std::mutex _lock;
104105
std::condition_variable _cond;

0 commit comments

Comments
 (0)