MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / Buffer

Method Buffer

runtime/TimeTrace.cc:83–92  ·  view source on GitHub ↗

* Construct a TimeTrace::Buffer. */

Source from the content-addressed store, hash-verified

81 * Construct a TimeTrace::Buffer.
82 */
83TimeTrace::Buffer::Buffer()
84 : nextIndex(0)
85 , activeReaders(0)
86 , events()
87{
88 // Mark all of the events invalid.
89 for (uint32_t i = 0; i < BUFFER_SIZE; i++) {
90 events[i].format = NULL;
91 }
92}
93
94/**
95 * Destructor for TimeTrace::Buffer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected