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

Method dispose

highs/parallel/HighsTaskExecutor.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#endif
30
31void HighsTaskExecutor::ExecutorHandle::dispose() {
32 if (ptr == nullptr) return;
33 if (isMain) {
34 ptr->stopWorkerThreads(false);
35 }
36
37 // check to see if we are the last handle and if so, delete the executor
38 if (--ptr->referenceCount == 0) {
39 cache_aligned::Deleter<HighsTaskExecutor>()(ptr);
40 }
41
42 ptr = nullptr;
43}

Callers 2

run_workerMethod · 0.80
shutdownMethod · 0.80

Calls 1

stopWorkerThreadsMethod · 0.80

Tested by

no test coverage detected