MCPcopy Create free account
hub / github.com/catboost/catboost / SchedYield

Function SchedYield

util/system/yield.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#endif
9
10void SchedYield() noexcept {
11#if defined(_unix_)
12 sched_yield();
13#else
14 Sleep(0);
15#endif
16}
17
18void ThreadYield() noexcept {
19#if defined(_freebsd_)

Callers 5

RegularYieldFunction · 0.85
WaitAllTaskToSubmitMethod · 0.85
WaitMethod · 0.85
WaitMethod · 0.85
ThreadYieldFunction · 0.85

Calls 1

SleepFunction · 0.85

Tested by

no test coverage detected