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

Method SafeAdd

util/thread/pool.cpp:678–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676} // namespace
677
678void IThreadPool::SafeAdd(IObjectInQueue* obj) {
679 Y_ENSURE_EX(Add(obj), TThreadPoolException() << TStringBuf("can not add object to queue"));
680}
681
682void IThreadPool::SafeAddAndOwn(THolder<IObjectInQueue> obj) {
683 Y_ENSURE_EX(AddAndOwn(std::move(obj)), TThreadPoolException() << TStringBuf("can not add to queue and own"));

Callers 1

DoRunMethod · 0.80

Calls 2

AddFunction · 0.50

Tested by

no test coverage detected