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

Method init

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

Source from the content-addressed store, hash-verified

137 public:
138 template<typename F>
139 void init(void* ptr, F ret2func, thread* th)
140 {
141 _ptr = ptr;
142 assert((uint64_t)_ptr % 16 == 0);
143 push(0);
144 push(0);
145 push(ret2func);
146 push(th); // rbp <== th
147 }
148 void** pointer_ref()
149 {
150 return &_ptr;

Callers 1

thread_createFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected