Changeset 551 for trunk/kernel/kern
- Timestamp:
- Sep 21, 2018, 10:24:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/scheduler.c
r500 r551 78 78 79 79 // take lock protecting sheduler lists 80 spinlock_lock( &sched->lock ); 80 uint32_t irq_state; 81 spinlock_lock_busy( &sched->lock, &irq_state ); 81 82 82 83 if( type == THREAD_USER ) … … 95 96 // release lock 96 97 hal_fence(); 97 spinlock_unlock ( &sched->lock);98 spinlock_unlock_busy( &sched->lock, irq_state); 98 99 99 100 } // end sched_register_thread()
Note: See TracChangeset
for help on using the changeset viewer.