| 395 | } |
| 396 | |
| 397 | uint64 CEMSocket::GetSentPayloadSinceLastCallAndReset() |
| 398 | { |
| 399 | std::lock_guard<std::mutex> lock( m_sendLocker ); |
| 400 | |
| 401 | uint64 sentBytes = m_actualPayloadSizeSent; |
| 402 | m_actualPayloadSizeSent = 0; |
| 403 | |
| 404 | return sentBytes; |
| 405 | } |
| 406 | |
| 407 | // Non-resetting peek at bytes sent since the last GetSentPayloadSinceLastCallAndReset() call. |
| 408 | // Used by the disk I/O thread to get a fresh view of sent bytes without consuming the counter |
no outgoing calls
no test coverage detected