MCPcopy Create free account
hub / github.com/boostorg/asio / join

Method join

example/cpp11/executors/fork_join.cpp:192–198  ·  view source on GitHub ↗

Block until all work associated with the executor is complete. While it is waiting, the thread may be borrowed to execute functions from the queue.

Source from the content-addressed store, hash-verified

190 // Block until all work associated with the executor is complete. While it is
191 // waiting, the thread may be borrowed to execute functions from the queue.
192 void join() const
193 {
194 std::unique_lock<std::mutex> lock(context_.mutex_);
195 while (*work_count_ > 0)
196 if (!context_.execute_next(lock))
197 context_.condition_.wait(lock);
198 }
199
200private:
201 template <class Func>

Callers 3

~join_guardMethod · 0.45
shutdownMethod · 0.45
mainFunction · 0.45

Calls 2

execute_nextMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected