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 52e382b commit bba1f7cCopy full SHA for bba1f7c
cpr/threadpool.cpp
@@ -78,7 +78,7 @@ void ThreadPool::Stop() {
78
}
79
80
81
-void ThreadPool::Wait() {
+void ThreadPool::Wait() const {
82
while (true) {
83
if ((state != State::RUNNING && curThreadCount <= 0) || (tasks.empty() && curThreadCount <= idleThreadCount)) {
84
break;
include/cpr/threadpool.h
@@ -169,7 +169,7 @@ class ThreadPool {
169
/**
170
* Returns as soon as the task queue is empty and all threads are either stopped/joined or in idel state.
171
**/
172
- void Wait();
+ void Wait() const;
173
174
175
* Enqueues a new task to the thread pool.
0 commit comments