Changeset 242a902 for src/libcfa/concurrency/thread
- Timestamp:
- Jul 18, 2017, 4:35:52 PM (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:
- f19339e
- Parents:
- 795d450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread
r795d450 r242a902 29 29 // Anything that is resumed is a coroutine. 30 30 trait is_thread(dtype T) { 31 void ^?{}(T *mutex this);31 void ^?{}(T& mutex this); 32 32 void main(T* this); 33 33 thread_desc* get_thread(T* this); … … 61 61 //----------------------------------------------------------------------------- 62 62 // Ctors and dtors 63 void ?{}(thread_desc *this);64 void ^?{}(thread_desc *this);63 void ?{}(thread_desc& this); 64 void ^?{}(thread_desc& this); 65 65 66 66 //----------------------------------------------------------------------------- … … 72 72 }; 73 73 74 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T *); } )75 void ?{}( scoped(T) *this );74 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T&); } ) 75 void ?{}( scoped(T)& this ); 76 76 77 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T *, P); } )78 void ?{}( scoped(T) *this, P params );77 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T&, P); } ) 78 void ?{}( scoped(T)& this, P params ); 79 79 80 80 forall( dtype T | sized(T) | is_thread(T) ) 81 void ^?{}( scoped(T) *this );81 void ^?{}( scoped(T)& this ); 82 82 83 83 void yield();
Note: See TracChangeset
for help on using the changeset viewer.