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

Function st_thread_create

thread/st.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55// st_switch_cb_t st_set_switch_out_cb(st_switch_cb_t cb);
56
57st_thread_t st_thread_create(void *(*start)(void *arg), void *arg,
58 int joinable, int stack_size) {
59 if (stack_size == 0)
60 stack_size = photon::DEFAULT_STACK_SIZE;
61 auto th = photon::thread_create(start, arg, stack_size);
62 if (joinable) photon::thread_enable_join(th);
63 return th;
64}
65
66void st_thread_exit(void *retval) {
67 photon::thread_exit(retval);

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

thread_createFunction · 0.85
thread_enable_joinFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68