Ignore:
Timestamp:
Aug 7, 2017, 12:50:17 PM (4 years ago)
Author:
alain
Message:

Introduce the delayed context switch if current thread has a lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/rwlock.c

    r124 r337  
    9191    // enable IRQs
    9292        hal_restore_irq( mode );
     93
     94    // deschedule if pending request
     95    thread_check_sched();
    9396}
    9497
     
    141144    lock->owner = NULL;
    142145    this->local_locks--;
    143    
     146
    144147    // enable IRQs
    145148        hal_restore_irq( mode );
     149   
     150    // deschedule if pending request
     151    thread_check_sched();
    146152}
    147153
Note: See TracChangeset for help on using the changeset viewer.