MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / allow_work_stealing

Method allow_work_stealing

thread/thread.cpp:223–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 bool is_shutting_down() { return is_bit(shift::shutting_down); }
222 void set_shutting_down(bool flag = true) { set_bit(shift::shutting_down, flag); }
223 bool allow_work_stealing() { return is_bit(shift::enable_work_stealing) &&
224 !(flags & THREAD_PAUSE_WORK_STEALING); }
225 int set_error_number() {
226 if (likely(error_number)) {
227 errno = error_number;

Callers 2

ws_scan_qFunction · 0.80
ws_scan_standbyqFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected