Ignore:
Timestamp:
Jul 18, 2017, 4:35:52 PM (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:
f19339e
Parents:
795d450
Message:

Convert more library files to use references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/thread

    r795d450 r242a902  
    2929// Anything that is resumed is a coroutine.
    3030trait is_thread(dtype T) {
    31       void ^?{}(T* mutex this);
     31      void ^?{}(T& mutex this);
    3232      void main(T* this);
    3333      thread_desc* get_thread(T* this);
     
    6161//-----------------------------------------------------------------------------
    6262// Ctors and dtors
    63 void ?{}(thread_desc* this);
    64 void ^?{}(thread_desc* this);
     63void ?{}(thread_desc& this);
     64void ^?{}(thread_desc& this);
    6565
    6666//-----------------------------------------------------------------------------
     
    7272};
    7373
    74 forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T*); } )
    75 void ?{}( scoped(T)* this );
     74forall( dtype T | sized(T) | is_thread(T) | { void ?{}(T&); } )
     75void ?{}( scoped(T)& this );
    7676
    77 forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T*, P); } )
    78 void ?{}( scoped(T)* this, P params );
     77forall( dtype T, ttype P | sized(T) | is_thread(T) | { void ?{}(T&, P); } )
     78void ?{}( scoped(T)& this, P params );
    7979
    8080forall( dtype T | sized(T) | is_thread(T) )
    81 void ^?{}( scoped(T)* this );
     81void ^?{}( scoped(T)& this );
    8282
    8383void yield();
Note: See TracChangeset for help on using the changeset viewer.