MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / shutdown

Method shutdown

highs/parallel/HighsTaskExecutor.h:171–178  ·  view source on GitHub ↗

can be called on main or worker threads blocking ignored unless called on main thread

Source from the content-addressed store, hash-verified

169 // can be called on main or worker threads
170 // blocking ignored unless called on main thread
171 static void shutdown(bool blocking = false) {
172 auto& executorHandle = threadLocalExecutorHandle();
173
174 if (executorHandle.ptr != nullptr) {
175 executorHandle.ptr->stopWorkerThreads(blocking);
176 executorHandle.dispose();
177 }
178 }
179
180 static void sync_stolen_task(HighsSplitDeque* localDeque,
181 HighsTask* stolenTask) {

Callers

nothing calls this directly

Calls 2

stopWorkerThreadsMethod · 0.80
disposeMethod · 0.80

Tested by

no test coverage detected