Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ SafeAddFunc
Method
SafeAddFunc
util/thread/pool.h:158–160 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
156
157
template <class T>
158
void SafeAddFunc(T&& func) {
159
Y_ENSURE_EX(AddFunc(std::forward<T>(func)), TThreadPoolException() << TStringBuf(
"can not add function to queue"
));
160
}
161
162
void SafeAddAndOwn(THolder<IObjectInQueue> obj);
163
Callers
8
Y_UNIT_TEST
Function · 0.80
Async
Function · 0.80
RunWaitTest
Function · 0.80
ParallelForStaticChunk
Function · 0.80
Y_UNIT_TEST
Function · 0.80
TestFixedThreadName
Function · 0.80
TestEnumeratedThreadName
Function · 0.80
DequeueAllRunner
Function · 0.80
Calls
1
TThreadPoolException
Class · 0.85
Tested by
2
TestFixedThreadName
Function · 0.64
TestEnumeratedThreadName
Function · 0.64