MCPcopy Create free account
hub / github.com/acl-dev/acl / start

Method start

lib_fiber/cpp/src/fiber.cpp:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void fiber::start(size_t stack_size /* 64000 */, bool share_stack /* false */)
248{
249 if (f_ != NULL) {
250 acl_msg_fatal("%s(%d), %s: fiber-%u, already running!",
251 __FILE__, __LINE__, __FUNCTION__, self());
252 }
253
254 ACL_FIBER_ATTR attr;
255 acl_fiber_attr_init(&attr);
256 acl_fiber_attr_setstacksize(&attr, stack_size);
257 acl_fiber_attr_setsharestack(&attr, share_stack ? 1 : 0);
258
259 acl_fiber_create2(&attr, fiber_callback, this);
260}
261
262void fiber::fiber_callback(ACL_FIBER *f, void *ctx)
263{

Callers 15

runMethod · 0.45
schedule_guiMethod · 0.45
keeper_connsMethod · 0.45
add_taskMethod · 0.45
runMethod · 0.45
check_idleMethod · 0.45
tbox_fiber_waitFunction · 0.45
tbox_fiber_consumeFunction · 0.45
tbox_mixed.cppFile · 0.45
start_threadsFunction · 0.45
start_threads2Function · 0.45
fiber_redisFunction · 0.45

Calls 7

acl_msg_fatalFunction · 0.85
acl_fiber_attr_initFunction · 0.85
acl_fiber_create2Function · 0.85
selfFunction · 0.50
acl_fiber_create_timerFunction · 0.50

Tested by 3

mainFunction · 0.36
runMethod · 0.36
mainFunction · 0.36