Changeset 438 for trunk/kernel/libk/spinlock.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/spinlock.c
r436 r438 38 38 lock->taken = 0; 39 39 40 #if CONFIG_DEBUG_SPINLOCKS40 #if DEBUG_SPINLOCKS 41 41 lock->owner = NULL; 42 42 list_entry_init( &lock->list ); … … 71 71 this->local_locks++; 72 72 73 #if CONFIG_DEBUG_SPINLOCKS73 #if DEBUG_SPINLOCKS 74 74 lock->owner = this; 75 75 list_add_first( &this->locks_root , &lock->list ); … … 86 86 thread_t * this = CURRENT_THREAD;; 87 87 88 #if CONFIG_DEBUG_SPINLOCKS88 #if DEBUG_SPINLOCKS 89 89 lock->owner = NULL; 90 90 list_unlink( &lock->list ); … … 132 132 this->local_locks++; 133 133 134 #if CONFIG_DEBUG_SPINLOCKS134 #if DEBUG_SPINLOCKS 135 135 lock->owner = this; 136 136 list_add_first( &this->locks_root , &lock->list ); … … 162 162 this->local_locks++; 163 163 164 #if CONFIG_DEBUG_SPINLOCKS164 #if DEBUG_SPINLOCKS 165 165 lock->owner = this; 166 166 list_add_first( &this->locks_root , &lock->list ); … … 177 177 thread_t * this = CURRENT_THREAD; 178 178 179 #if CONFIG_DEBUG_SPINLOCKS179 #if DEBUG_SPINLOCKS 180 180 lock->owner = NULL; 181 181 list_unlink( &lock->list );
Note: See TracChangeset
for help on using the changeset viewer.