MCPcopy Create free account
hub / github.com/amule-project/amule / GetSentPayloadSinceLastCallAndReset

Method GetSentPayloadSinceLastCallAndReset

src/EMSocket.cpp:397–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397uint64 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

Callers 2

ResetSessionUpMethod · 0.80
SendBlockDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected