MCPcopy Create free account
hub / github.com/Tencent/libco / co_get_stackmem

Function co_get_stackmem

co_routine.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static stStackMem_t* co_get_stackmem(stShareStack_t* share_stack)
297{
298 if (!share_stack)
299 {
300 return NULL;
301 }
302 int idx = share_stack->alloc_idx % share_stack->count;
303 share_stack->alloc_idx++;
304
305 return share_stack->stack_array[idx];
306}
307
308
309// ----------------------------------------------------------------------------

Callers 1

co_create_envFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected