We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97a2af commit f6148b5Copy full SHA for f6148b5
include/pthread/sync_queue.hpp
@@ -81,7 +81,7 @@ namespace pthread {
81
82
/** @return current number of elements in the queue */
83
#if __cplusplus < 201103L
84
- size_t size() const {
+ size_t size() {
85
// we use read/write locks when std::atomic is not available
86
pthread::lock_guard<pthread::read_lock> lck(_rwlock);
87
#else
0 commit comments