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.
readability-avoid-return-with-void-value
1 parent 4abaa98 commit 68c1c6cCopy full SHA for 68c1c6c
include/mp/proxy-io.h
@@ -152,7 +152,7 @@ class EventLoop
152
template <typename Callable>
153
void sync(Callable&& callable)
154
{
155
- return post(std::ref(callable));
+ post(std::ref(callable));
156
}
157
158
//! Start asynchronous worker thread if necessary. This is only done if
src/mp/proxy.cpp
@@ -221,7 +221,8 @@ void EventLoop::loop()
221
void EventLoop::post(const std::function<void()>& fn)
222
223
if (std::this_thread::get_id() == m_thread_id) {
224
- return fn();
+ fn();
225
+ return;
226
227
std::unique_lock<std::mutex> lock(m_mutex);
228
m_cv.wait(lock, [this] { return m_post_fn == nullptr; });
0 commit comments