Ignore:
Timestamp:
Aug 7, 2017, 12:50:17 PM (7 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/remote_rwlock.c

    r318 r337  
    118118    // enable interrupts
    119119        hal_restore_irq( mode );
     120   
     121    // deschedule if pending request
     122    thread_check_sched();
    120123
    121124}  // end remote_rwlock_rd_unlock()
     
    201204    // enable interrupts
    202205        hal_restore_irq( mode );
     206   
     207    // deschedule if pending request
     208    thread_check_sched();
    203209
    204210}  // end remote_rwlock_wr_unlock()
Note: See TracChangeset for help on using the changeset viewer.