MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / CopyRecordingToggleHistory

Function CopyRecordingToggleHistory

PresentMon/OutputThread.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static bool CopyRecordingToggleHistory(std::vector<uint64_t>* recordingToggleHistory)
65{
66 std::vector<uint64_t> newToggles;
67 bool currentRecordingState;
68 {
69 EnterCriticalSection(&gRecordingToggleCS);
70 newToggles.swap(gRecordingToggleHistory);
71 currentRecordingState = gIsRecording;
72 LeaveCriticalSection(&gRecordingToggleCS);
73 }
74
75 recordingToggleHistory->insert(recordingToggleHistory->end(), newToggles.begin(), newToggles.end());
76 return currentRecordingState;
77}
78
79// Processes are handled differently when running in realtime collection vs.
80// ETL collection. When reading an ETL, we receive NT_PROCESS events whenever

Callers 1

OutputFunction · 0.85

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected