Changeset 408 for trunk/kernel/libk
- Timestamp:
- Dec 5, 2017, 4:20:07 PM (7 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_barrier.c
r407 r408 274 274 // block & deschedule the calling thread 275 275 thread_block( thread_ptr , THREAD_BLOCKED_USERSYNC ); 276 sched_yield( );276 sched_yield("blocked on barrier"); 277 277 278 278 // restore interrupts -
trunk/kernel/libk/remote_condvar.c
r407 r408 189 189 // block the calling thread 190 190 thread_block( CURRENT_THREAD , THREAD_BLOCKED_USERSYNC ); 191 sched_yield( );191 sched_yield("blocked on condvar"); 192 192 193 193 // lock the mutex before return -
trunk/kernel/libk/remote_fifo.c
r407 r408 89 89 // - deschedule without blocking if possible 90 90 // - wait ~1000 cycles otherwise 91 if( thread_can_yield() ) sched_yield( );91 if( thread_can_yield() ) sched_yield( "wait RPC fifo" ); 92 92 else hal_fixed_delay( 1000 ); 93 93 -
trunk/kernel/libk/remote_mutex.c
r407 r408 208 208 // block & deschedule the calling thread 209 209 thread_block( thread_ptr , THREAD_BLOCKED_USERSYNC ); 210 sched_yield( );210 sched_yield("blocked on mutex"); 211 211 212 212 // restore interrupts -
trunk/kernel/libk/remote_sem.c
r407 r408 219 219 // block and deschedule 220 220 thread_block( this , THREAD_BLOCKED_SEM ); 221 sched_yield( );221 sched_yield("blocked on semaphore"); 222 222 } 223 223 } // end remote_sem_wait() -
trunk/kernel/libk/remote_spinlock.c
r407 r408 179 179 { 180 180 hal_restore_irq( mode ); 181 if( thread_can_yield() ) sched_yield( );181 if( thread_can_yield() ) sched_yield("waiting spinlock"); 182 182 hal_disable_irq( &mode ); 183 183 continue; -
trunk/kernel/libk/spinlock.c
r407 r408 111 111 { 112 112 hal_restore_irq( mode ); 113 if( thread_can_yield() ) sched_yield( );113 if( thread_can_yield() ) sched_yield("waiting spinlock"); 114 114 hal_disable_irq( &mode ); 115 115 continue;
Note: See TracChangeset
for help on using the changeset viewer.