MCPcopy Create free account
hub / github.com/crownengine/crown / flush_local_buffer

Function flush_local_buffer

src/core/profiler.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 static Mutex _buffer_mutex;
50
51 static void flush_local_buffer()
52 {
53 ScopedMutex sm(_buffer_mutex);
54 array::push(*profiler_globals::_buffer, _thread_buffer, _thread_buffer_size);
55 _thread_buffer_size = 0;
56 }
57
58 template<typename T>
59 static void push(ProfilerEventType::Enum type, const T &ev)

Callers 2

pushFunction · 0.85
flushFunction · 0.85

Calls 1

pushFunction · 0.85

Tested by

no test coverage detected