Changeset 436 for trunk/kernel/libk/spinlock.c
- Timestamp:
- Mar 7, 2018, 9:02:03 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/spinlock.c
r433 r436 38 38 lock->taken = 0; 39 39 40 #if CONFIG_DEBUG_ LOCKS41 42 40 #if CONFIG_DEBUG_SPINLOCKS 41 lock->owner = NULL; 42 list_entry_init( &lock->list ); 43 43 #endif 44 44 … … 71 71 this->local_locks++; 72 72 73 #if CONFIG_DEBUG_ LOCKS74 75 73 #if CONFIG_DEBUG_SPINLOCKS 74 lock->owner = this; 75 list_add_first( &this->locks_root , &lock->list ); 76 76 #endif 77 77 … … 86 86 thread_t * this = CURRENT_THREAD;; 87 87 88 #if CONFIG_DEBUG_ LOCKS89 90 88 #if CONFIG_DEBUG_SPINLOCKS 89 lock->owner = NULL; 90 list_unlink( &lock->list ); 91 91 #endif 92 92 … … 132 132 this->local_locks++; 133 133 134 #if CONFIG_DEBUG_ LOCKS135 136 134 #if CONFIG_DEBUG_SPINLOCKS 135 lock->owner = this; 136 list_add_first( &this->locks_root , &lock->list ); 137 137 #endif 138 138 … … 162 162 this->local_locks++; 163 163 164 #if CONFIG_DEBUG_ LOCKS165 166 164 #if CONFIG_DEBUG_SPINLOCKS 165 lock->owner = this; 166 list_add_first( &this->locks_root , &lock->list ); 167 167 #endif 168 168 … … 177 177 thread_t * this = CURRENT_THREAD; 178 178 179 #if CONFIG_DEBUG_ LOCKS180 181 179 #if CONFIG_DEBUG_SPINLOCKS 180 lock->owner = NULL; 181 list_unlink( &lock->list ); 182 182 #endif 183 183
Note: See TracChangeset
for help on using the changeset viewer.