21 std::function<void()>
fn_;
24 #define go acl::go_fiber()> 25 #define go_stack(size) acl::go_fiber(size)> 27 #define go_wait_fiber acl::go_fiber()< 28 #define go_wait_thread acl::go_fiber()<< 29 #define go_wait go_wait_thread 35 go_fiber(
size_t stack_size) : stack_size_(stack_size) {}
37 void operator > (std::function<
void()> fn)
43 void operator < (std::function<
void()> fn)
54 void operator << (std::function<
void()> fn)
68 size_t stack_size_ = 320000;
70 static void fiber_main(
ACL_FIBER*,
void* ctx)
73 std::function<void()> fn = fc->
fn_;
go_fiber(size_t stack_size)
T * pop(int wait_ms=-1, bool *found=NULL)
static void fiber_create(void(*fn)(ACL_FIBER *, void *), void *ctx, size_t size)
fiber_ctx(std::function< void()> fn)
std::function< void()> fn_
bool push(T *t, bool notify_first=true)
struct ACL_FIBER ACL_FIBER