Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/threads

    r8118303 rc84e80a  
    2828// Anything that is resumed is a coroutine.
    2929trait is_thread(dtype T /*| sized(T)*/) {
    30       void co_main(T* this);
     30      void main(T* this);
    3131      thread_h* get_thread(T* this);
    3232        /*void ?{}(T*);
     
    3737static inline coroutine* get_coroutine(T* this) {
    3838        return &get_thread(this)->c;
     39}
     40
     41static inline coroutine* get_coroutine(thread_h* this) {
     42        return &this->c;
    3943}
    4044
Note: See TracChangeset for help on using the changeset viewer.