| 79 | } |
| 80 | |
| 81 | void EventLog::append(EventType type, |
| 82 | uint32_t connectionId, |
| 83 | uint32_t callId, |
| 84 | const std::string& message) { |
| 85 | Synchronized s(monitor_); |
| 86 | debug("%d <-- %u, %u, %s \"%s\"", id_, connectionId, callId, type, message.c_str()); |
| 87 | |
| 88 | Event e(type, connectionId, callId, message); |
| 89 | events_.push_back(e); |
| 90 | |
| 91 | monitor_.notify(); |
| 92 | } |
| 93 | |
| 94 | Event EventLog::waitForEvent(int64_t timeout) { |
| 95 | Synchronized s(monitor_); |
no test coverage detected