Changeset 7fbe450 for src/libcfa


Ignore:
Timestamp:
Jan 18, 2017, 12:06:44 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
c84e80a
Parents:
c49bf54
Message:

No longer using co_main for coroutines/threads, now simply using main

Location:
src/libcfa/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutines

    rc49bf54 r7fbe450  
    2626// Anything that is resumed is a coroutine.
    2727trait is_coroutine(dtype T) {
    28       void co_main(T * this);
     28      void main(T * this);
    2929      coroutine * get_coroutine(T * this);
    3030};
  • src/libcfa/concurrency/threads

    rc49bf54 r7fbe450  
    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*);
Note: See TracChangeset for help on using the changeset viewer.