3 #include <Poco/Thread.h>
4 #include <Poco/Timespan.h>
23 Joiner(Poco::Thread &thread);
32 void join(
const Poco::Timespan &timeout = -1);
41 bool tryJoin(
const Poco::Timespan &timeout = -1);
56 Poco::Thread &m_thread;
57 Poco::FastMutex m_joinLock;
void join(const Poco::Timespan &timeout=-1)
Join the underlying thread. The timeout controls whether we are waiting indefinitely (when negative) ...
Definition: Joiner.cpp:26
void doJoin(long ms)
Call the actual join based on the timeout.
Definition: Joiner.cpp:69
Joiner implements join() on a thread that can be called multiple times from different threads...
Definition: Joiner.h:21
void joinFromMany(long ms)
Implement locking to allow exactly 1 thread to call the join(). The lock respects the given timeout...
Definition: Joiner.cpp:55
bool tryJoin(const Poco::Timespan &timeout=-1)
Join the underlying thread. The timeout controls whether we are waiting indefinitely (when negative) ...
Definition: Joiner.cpp:31