MCPcopy Create free account
hub / github.com/baidu/babylon / initialize

Method initialize

src/babylon/executor.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int ThreadPoolExecutor::initialize(size_t worker_number,
137 size_t global_capacity) noexcept {
138 if (!_threads.empty()) {
139 return -1;
140 }
141 _worker_number = worker_number;
142 _global_capacity = global_capacity;
143 return start();
144}
145
146int ThreadPoolExecutor::invoke(
147 MoveOnlyFunction<void(void)>&& function) noexcept {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected