Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/papers/concurrency/c++-cor/C++Cor-ts.cpp

    rbe3416d r8f936bf  
    1818//==================================================
    1919
    20 
    2120co_yield i;
    2221
     
    2827
    2928co_await __promise.yield_value(i);
     29
     30//==================================================
     31
     32... coroutine() {
     33        __coroutine_context* __context = new __coroutine_context{};
     34        __return = __context->_promise.get_return_object();
     35        co_await   __context->_promise.initial_suspend();
     36
     37        ...
     38
     39__final_suspend_label:
     40        co_await __context->promise.final_suspend();
     41        delete __context;
     42}
Note: See TracChangeset for help on using the changeset viewer.