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.
2 parents 2f703e3 + f6148b5 commit 9619ab5Copy full SHA for 9619ab5
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