Changeset 433 for trunk/kernel/libk/rwlock.c
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/rwlock.c
r409 r433 38 38 lock->count = 0; 39 39 40 #if CONFIG_ LOCKS_DEBUG40 #if CONFIG_DEBUG_LOCKS 41 41 lock->owner = NULL; 42 42 list_entry_init( &lock->list ); … … 70 70 this->local_locks++; 71 71 72 #if CONFIG_ LOCKS_DEBUG72 #if CONFIG_DEBUG_LOCKS 73 73 list_add_first( &this->locks_root , &lock->list ); 74 74 #endif … … 98 98 this->local_locks--; 99 99 100 #if CONFIG_ LOCKS_DEBUG100 #if CONFIG_DEBUG_LOCKS 101 101 list_unlink( &lock->list ); 102 102 #endif … … 138 138 this->local_locks++; 139 139 140 #if CONFIG_ LOCKS_DEBUG140 #if CONFIG_DEBUG_LOCKS 141 141 lock->owner = this; 142 142 list_add_first( &this->locks_root , &lock->list ); … … 157 157 hal_disable_irq( &mode ); 158 158 159 #if CONFIG_ LOCKS_DEBUG159 #if CONFIG_DEBUG_LOCKS 160 160 lock->owner = NULL; 161 161 list_unlink( &lock->list );
Note: See TracChangeset
for help on using the changeset viewer.