Changeset 83a071f9 for src/libcfa/concurrency/thread.c
- Timestamp:
- Aug 11, 2017, 10:10:26 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:
- fd344aa
- Parents:
- 8499c707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread.c
r8499c707 r83a071f9 51 51 void ?{}( scoped(T)& this ) { 52 52 (this.handle){}; 53 __thrd_start( &this.handle);53 __thrd_start(this.handle); 54 54 } 55 55 … … 57 57 void ?{}( scoped(T)& this, P params ) { 58 58 (this.handle){ params }; 59 __thrd_start( &this.handle);59 __thrd_start(this.handle); 60 60 } 61 61 … … 68 68 // Starting and stopping threads 69 69 forall( dtype T | is_thread(T) ) 70 void __thrd_start( T *this ) {70 void __thrd_start( T& this ) { 71 71 coroutine_desc* thrd_c = get_coroutine(this); 72 72 thread_desc* thrd_h = get_thread (this); … … 78 78 create_stack(&thrd_c->stack, thrd_c->stack.size); 79 79 this_coroutine = thrd_c; 80 CtxStart( this, CtxInvokeThread);80 CtxStart(&this, CtxInvokeThread); 81 81 assert( thrd_c->last->stack.context ); 82 82 CtxSwitch( thrd_c->last->stack.context, thrd_c->stack.context );
Note: See TracChangeset
for help on using the changeset viewer.