Changeset 433 for trunk/kernel/libk/spinlock.c
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/spinlock.c
r409 r433 38 38 lock->taken = 0; 39 39 40 #if CONFIG_ LOCKS_DEBUG40 #if CONFIG_DEBUG_LOCKS 41 41 lock->owner = NULL; 42 42 list_entry_init( &lock->list ); … … 71 71 this->local_locks++; 72 72 73 #if CONFIG_ LOCKS_DEBUG73 #if CONFIG_DEBUG_LOCKS 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_ LOCKS_DEBUG88 #if CONFIG_DEBUG_LOCKS 89 89 lock->owner = NULL; 90 90 list_unlink( &lock->list ); … … 132 132 this->local_locks++; 133 133 134 #if CONFIG_ LOCKS_DEBUG134 #if CONFIG_DEBUG_LOCKS 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_ LOCKS_DEBUG164 #if CONFIG_DEBUG_LOCKS 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_ LOCKS_DEBUG179 #if CONFIG_DEBUG_LOCKS 180 180 lock->owner = NULL; 181 181 list_unlink( &lock->list );
Note: See TracChangeset
for help on using the changeset viewer.