run task as stealer and return the owner's split deque if the owner is waiting and needs to be signaled
| 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 |
no test coverage detected