MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / ProcessNext_

Method ProcessNext_

Source/Engine/StratusThread.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 void Thread::ProcessNext_() {
103 if (processing_.load()) {
104 for (const ThreadFunction & func : backQueue_) func();
105 backQueue_.clear();
106 processing_.store(false); // Signal completion
107 }
108 else {
109 // Sleep a bit to prevent hogging CPU core
110 std::this_thread::sleep_for(std::chrono::nanoseconds(1));
111 }
112 }
113
114 const std::string& Thread::Name() const {
115 return name_;

Callers 1

ThreadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected