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

Method run

highs/parallel/HighsTask.h:81–87  ·  view source on GitHub ↗

run task as stealer and return the owner's split deque if the owner is waiting and needs to be signaled

Source from the content-addressed store, hash-verified

79 /// run task as stealer and return the owner's split deque if the owner is
80 /// waiting and needs to be signaled
81 HighsSplitDeque* run(HighsSplitDeque* stealer) {
82 uintptr_t state = metadata.stealer.fetch_or(
83 reinterpret_cast<uintptr_t>(stealer), std::memory_order_acquire);
84 if (state == 0) getCallable()();
85
86 return markAsFinished(stealer);
87 }
88
89 public:
90 /// initialize the task with given callable type. Task is considered

Callers 2

runStolenTaskMethod · 0.45
syncFunction · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected