MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clear

Method clear

app/src/IO/CircularBuffer.h:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 */
181template<typename T, Concepts::ByteLike StorageType>
182void IO::CircularBuffer<T, StorageType>::clear()
183{
184 m_head.store(0, std::memory_order_release);
185 m_tail.store(0, std::memory_order_release);
186 m_overflowCount.store(0, std::memory_order_relaxed);
187}
188
189/**
190 * @brief Appends data to the circular buffer (lock-free SPSC producer).

Callers 15

shutdownDriversMethod · 0.45
killFrameReaderMethod · 0.45
setStartSequencesMethod · 0.45
setFinishSequencesMethod · 0.45
closeFileMethod · 0.45
clearLogMethod · 0.45
stopTransmissionMethod · 0.45
startTransferMethod · 0.45
processHexByteMethod · 0.45
processBin32ByteMethod · 0.45
processBinByteMethod · 0.45

Calls

no outgoing calls

Tested by 1

runClockRewindCheckFunction · 0.36