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

Method set_joinable

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

Source from the content-addressed store, hash-verified

218 void set_bit(int i, bool flag) { if (likely(flag)) set_bit(i); else clear_bit(i); }
219 bool is_joinable() { return is_bit(shift::joinable); }
220 void set_joinable(bool flag = true) { set_bit(shift::joinable, flag); }
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) &&

Callers 1

thread_enable_joinFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected