Changeset 7fbe450 for src/libcfa
- Timestamp:
- Jan 18, 2017, 12:06:44 PM (8 years ago)
- 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
- Location:
- src/libcfa/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines
rc49bf54 r7fbe450 26 26 // Anything that is resumed is a coroutine. 27 27 trait is_coroutine(dtype T) { 28 void co_main(T * this);28 void main(T * this); 29 29 coroutine * get_coroutine(T * this); 30 30 }; -
src/libcfa/concurrency/threads
rc49bf54 r7fbe450 28 28 // Anything that is resumed is a coroutine. 29 29 trait is_thread(dtype T /*| sized(T)*/) { 30 void co_main(T* this);30 void main(T* this); 31 31 thread_h* get_thread(T* this); 32 32 /*void ?{}(T*);
Note: See TracChangeset
for help on using the changeset viewer.