MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / notify

Method notify

modules/core/task/src/task2.cpp:595–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593 }
594
595 void condvar_t::notify()
596 {
597 skr_wake_all_condition_vars(&cv);
598 for(uint32_t i=0; i<waiters.size(); ++i)
599 {
600 enqueue(Task{std::move(waiters[i])}, workerIndices[i]);
601 }
602 waiters.clear();
603 workerIndices.clear();
604 numWaiting = 0;
605 }
606
607 void event_t::notify()
608 {

Callers 3

addMethod · 0.45
decreaseMethod · 0.45
main.cppFile · 0.45

Calls 5

enqueueFunction · 0.85
moveFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected