MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / AddHelperThread

Method AddHelperThread

lib/macro/macro.cpp:534–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void Macro::AddHelperThread(std::thread &&newThread)
535{
536 for (unsigned int i = 0; i < _helperThreads.size(); i++) {
537 if (!_helperThreads[i].joinable()) {
538 _helperThreads[i] = std::move(newThread);
539 return;
540 }
541 }
542 _helperThreads.push_back(std::move(newThread));
543}
544
545void Macro::SetPauseStateSaveBehavior(PauseStateSaveBehavior behavior)
546{

Callers 1

AddMacroHelperThreadFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected