Changeset 296 for trunk/kernel/libk
- Timestamp:
- Jul 31, 2017, 1:59:52 PM (7 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_barrier.c
r104 r296 274 274 // block & deschedule the calling thread 275 275 thread_block( thread_ptr , THREAD_BLOCKED_USERSYNC ); 276 sched_yield( );276 sched_yield( NULL ); 277 277 278 278 // restore interrupts -
trunk/kernel/libk/remote_condvar.c
r60 r296 189 189 // block the calling thread 190 190 thread_block( CURRENT_THREAD , THREAD_BLOCKED_USERSYNC ); 191 sched_yield( );191 sched_yield( NULL ); 192 192 193 193 // lock the mutex before return -
trunk/kernel/libk/remote_fifo.c
r279 r296 99 99 100 100 // deschedule without blocking 101 if( thread_can_yield() ) sched_yield( );101 if( thread_can_yield() ) sched_yield( NULL ); 102 102 103 103 // disable interrupts -
trunk/kernel/libk/remote_mutex.c
r124 r296 208 208 // block & deschedule the calling thread 209 209 thread_block( thread_ptr , THREAD_BLOCKED_USERSYNC ); 210 sched_yield( );210 sched_yield( NULL ); 211 211 212 212 // restore interrupts -
trunk/kernel/libk/remote_sem.c
r23 r296 219 219 // block and deschedule 220 220 thread_block( this , THREAD_BLOCKED_SEM ); 221 sched_yield( );221 sched_yield( NULL ); 222 222 } 223 223 } // end remote_sem_wait() -
trunk/kernel/libk/remote_spinlock.c
r101 r296 178 178 { 179 179 hal_restore_irq( mode ); 180 if( thread_can_yield() ) sched_yield( );180 if( thread_can_yield() ) sched_yield( NULL ); 181 181 hal_disable_irq( &mode ); 182 182 continue; -
trunk/kernel/libk/spinlock.c
r60 r296 107 107 { 108 108 hal_restore_irq( mode ); 109 if( thread_can_yield() ) sched_yield( );109 if( thread_can_yield() ) sched_yield( NULL ); 110 110 hal_disable_irq( &mode ); 111 111 continue;
Note: See TracChangeset
for help on using the changeset viewer.