Ignore:
File:
1 edited

Legend:

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

    r8e16177 rc66f6cb  
    256256}
    257257
    258 void ?{}(cluster & this, const char name[], Duration preemption_rate, int io_flags) with( this ) {
     258void ?{}(cluster & this, const char name[], Duration preemption_rate) with( this ) {
    259259        this.name = name;
    260260        this.preemption_rate = preemption_rate;
     
    270270        threads{ __get };
    271271
    272         __kernel_io_startup( this, io_flags, &this == mainCluster );
     272        __kernel_io_startup( this, &this == mainCluster );
    273273
    274274        doregister(this);
     
    901901        // Wake them up
    902902        __cfadbg_print_safe(runtime_core, "Kernel : waking Processor %p\n", this->idles.head);
    903         /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
    904903        post( this->idles.head->idle );
    905904
     
    912911static bool __wake_proc(processor * this) {
    913912        __cfadbg_print_safe(runtime_core, "Kernel : waking Processor %p\n", this);
    914 
    915         disable_interrupts();
    916                 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
    917                 bool ret = post( this->idle );
    918         enable_interrupts( __cfaabi_dbg_ctx );
    919 
    920         return ret;
     913        return post( this->idle );
    921914}
    922915
     
    1000993void ^?{}(semaphore & this) {}
    1001994
    1002 bool P(semaphore & this) with( this ){
     995void P(semaphore & this) with( this ){
    1003996        lock( lock __cfaabi_dbg_ctx2 );
    1004997        count -= 1;
     
    10101003                unlock( lock );
    10111004                park( __cfaabi_dbg_ctx );
    1012                 return true;
    10131005        }
    10141006        else {
    10151007            unlock( lock );
    1016             return false;
    10171008        }
    10181009}
Note: See TracChangeset for help on using the changeset viewer.