Ignore:
File:
1 edited

Legend:

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

    r4069faad r71c8b7e  
    254254}
    255255
    256 void ?{}(cluster & this, const char name[], Duration preemption_rate) with( this ) {
     256void ?{}(cluster & this, const char name[], Duration preemption_rate, int io_flags) with( this ) {
    257257        this.name = name;
    258258        this.preemption_rate = preemption_rate;
     
    268268        threads{ __get };
    269269
    270         __kernel_io_startup( this, &this == mainCluster );
     270        __kernel_io_startup( this, io_flags, &this == mainCluster );
    271271
    272272        doregister(this);
     
    987987void ^?{}(semaphore & this) {}
    988988
    989 void P(semaphore & this) with( this ){
     989bool P(semaphore & this) with( this ){
    990990        lock( lock __cfaabi_dbg_ctx2 );
    991991        count -= 1;
     
    997997                unlock( lock );
    998998                park( __cfaabi_dbg_ctx );
     999                return true;
    9991000        }
    10001001        else {
    10011002            unlock( lock );
     1003            return false;
    10021004        }
    10031005}
Note: See TracChangeset for help on using the changeset viewer.