| 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 | { |
no test coverage detected