Ignore:
Timestamp:
May 8, 2020, 11:53:29 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
04bc1c0
Parents:
6ec07e5 (diff), e68d092 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    r6ec07e5 raf7acb9  
    256256}
    257257
    258 void ?{}(cluster & this, const char name[], Duration preemption_rate) with( this ) {
     258void ?{}(cluster & this, const char name[], Duration preemption_rate, int io_flags) with( this ) {
    259259        this.name = name;
    260260        this.preemption_rate = preemption_rate;
     
    270270        threads{ __get };
    271271
    272         __kernel_io_startup( this, &this == mainCluster );
     272        __kernel_io_startup( this, io_flags, &this == mainCluster );
    273273
    274274        doregister(this);
     
    993993void ^?{}(semaphore & this) {}
    994994
    995 void P(semaphore & this) with( this ){
     995bool P(semaphore & this) with( this ){
    996996        lock( lock __cfaabi_dbg_ctx2 );
    997997        count -= 1;
     
    10031003                unlock( lock );
    10041004                park( __cfaabi_dbg_ctx );
     1005                return true;
    10051006        }
    10061007        else {
    10071008            unlock( lock );
     1009            return false;
    10081010        }
    10091011}
Note: See TracChangeset for help on using the changeset viewer.