Ignore:
Timestamp:
Aug 11, 2017, 10:10:26 AM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

Fix concurrency library, tests, and keywords for references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/thread.c

    r8499c707 r83a071f9  
    5151void ?{}( scoped(T)& this ) {
    5252        (this.handle){};
    53         __thrd_start(&this.handle);
     53        __thrd_start(this.handle);
    5454}
    5555
     
    5757void ?{}( scoped(T)& this, P params ) {
    5858        (this.handle){ params };
    59         __thrd_start(&this.handle);
     59        __thrd_start(this.handle);
    6060}
    6161
     
    6868// Starting and stopping threads
    6969forall( dtype T | is_thread(T) )
    70 void __thrd_start( T* this ) {
     70void __thrd_start( T& this ) {
    7171        coroutine_desc* thrd_c = get_coroutine(this);
    7272        thread_desc*  thrd_h = get_thread   (this);
     
    7878        create_stack(&thrd_c->stack, thrd_c->stack.size);
    7979        this_coroutine = thrd_c;
    80         CtxStart(this, CtxInvokeThread);
     80        CtxStart(&this, CtxInvokeThread);
    8181        assert( thrd_c->last->stack.context );
    8282        CtxSwitch( thrd_c->last->stack.context, thrd_c->stack.context );
Note: See TracChangeset for help on using the changeset viewer.