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

Method set_error_number

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

Source from the content-addressed store, hash-verified

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;
228 error_number = 0;
229 return -1;
230 }
231 return 0;
232 }
233
234 struct stack_alloc_header {
235 uint32_t size;

Callers 4

thread_usleepFunction · 0.80
thread_usleep_deferFunction · 0.80
do_thread_usleep_deferFunction · 0.80
do_thread_usleepFunction · 0.80

Calls 1

likelyFunction · 0.50

Tested by

no test coverage detected