MCPcopy Create free account
hub / github.com/apache/brpc / get_stack

Function get_stack

src/bthread/stack_inl.h:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178};
179
180inline ContextualStack* get_stack(StackType type, void (*entry)(intptr_t)) {
181 switch (type) {
182 case STACK_TYPE_PTHREAD:
183 return NULL;
184 case STACK_TYPE_SMALL:
185 return StackFactory<SmallStackClass>::get_stack(entry);
186 case STACK_TYPE_NORMAL:
187 return StackFactory<NormalStackClass>::get_stack(entry);
188 case STACK_TYPE_LARGE:
189 return StackFactory<LargeStackClass>::get_stack(entry);
190 case STACK_TYPE_MAIN:
191 return StackFactory<MainStackClass>::get_stack(entry);
192 }
193 return NULL;
194}
195
196inline void return_stack(ContextualStack* s) {
197 if (NULL == s) {

Callers 3

sched_toMethod · 0.85
initMethod · 0.85
ending_schedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected