Changeset 9f1695b for src/libcfa/concurrency/thread
- Timestamp:
- Mar 17, 2017, 10:46:48 AM (7 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:
- 17af7d1
- Parents:
- 3743983
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread
r3743983 r9f1695b 28 28 // Anything that is resumed is a coroutine. 29 29 trait is_thread(dtype T) { 30 void ^?{}(T* this); 30 31 void main(T* this); 31 32 thread_desc* get_thread(T* this); … … 64 65 void ?{}( scoped(T)* this, P params ); 65 66 66 forall( dtype T | sized(T) | is_thread(T) | { void ^?{}(T*); })67 forall( dtype T | sized(T) | is_thread(T) ) 67 68 void ^?{}( scoped(T)* this ); 68 69
Note: See TracChangeset
for help on using the changeset viewer.