- 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
- Location:
- src/libcfa/concurrency
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
r3743983 r9f1695b 56 56 57 57 void CtxInvokeThread( 58 void (*dtor)(void *), 58 59 void (*main)(void *), 59 60 struct thread_desc *(*get_thread)(void *), -
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 -
src/libcfa/concurrency/thread.c
r3743983 r9f1695b 64 64 } 65 65 66 forall( dtype T | sized(T) | is_thread(T) | { void ^?{}(T*); })66 forall( dtype T | sized(T) | is_thread(T) ) 67 67 void ^?{}( scoped(T)* this ) { 68 68 stop(&this->handle);
Note: See TracChangeset
for help on using the changeset viewer.