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

Method Stop

util/thread/pool.cpp:515–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513 }
514
515 inline void Stop() noexcept {
516 Mutex_.Acquire();
517
518 AllDone_ = true;
519
520 while (ThrCount_.load()) {
521 Mutex_.Release();
522 CondReady_.Signal();
523 Mutex_.Acquire();
524 }
525
526 Mutex_.Release();
527 }
528
529 inline IObjectInQueue* WaitForJob() noexcept {
530 Mutex_.Acquire();

Callers

nothing calls this directly

Calls 4

AcquireMethod · 0.45
loadMethod · 0.45
ReleaseMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected