MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / join

Function join

UnitTests/sources/SocketTest.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83 bool join() {
84 if (!parallel) {
85 if (testDisconnection)
86 return !connected();
87 lock_guard<Mutex> lock(_mutex);
88 return _datas.empty();
89 }
90 while(_signal.wait(20000)) {
91 lock_guard<Mutex> lock(_mutex);
92 if (testDisconnection)
93 return !connected();
94 if (_datas.empty())
95 return true;
96 }
97 return false;
98 }
99
100 bool echo(Exception& ex,const UInt8* data,UInt32 size) {
101 {

Callers 1

~PoolThreadMethod · 0.85

Calls 2

emptyMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected