Changeset 436 for trunk/kernel/libk/rwlock.c
- Timestamp:
- Mar 7, 2018, 9:02:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/rwlock.c
r433 r436 2 2 * rwlock.c - kernel read/write lock synchronization. 3 3 * 4 * Author Alain Greiner (2016 }4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 38 38 lock->count = 0; 39 39 40 #if CONFIG_DEBUG_ LOCKS41 42 40 #if CONFIG_DEBUG_RWLOCKS 41 lock->owner = NULL; 42 list_entry_init( &lock->list ); 43 43 #endif 44 44 … … 70 70 this->local_locks++; 71 71 72 #if CONFIG_DEBUG_ LOCKS73 72 #if CONFIG_DEBUG_RWLOCKS 73 list_add_first( &this->locks_root , &lock->list ); 74 74 #endif 75 75 … … 98 98 this->local_locks--; 99 99 100 #if CONFIG_DEBUG_ LOCKS101 100 #if CONFIG_DEBUG_RWLOCKS 101 list_unlink( &lock->list ); 102 102 #endif 103 103 … … 138 138 this->local_locks++; 139 139 140 #if CONFIG_DEBUG_ LOCKS141 142 140 #if CONFIG_DEBUG_RWLOCKS 141 lock->owner = this; 142 list_add_first( &this->locks_root , &lock->list ); 143 143 #endif 144 144 … … 157 157 hal_disable_irq( &mode ); 158 158 159 #if CONFIG_DEBUG_ LOCKS160 161 159 #if CONFIG_DEBUG_RWLOCKS 160 lock->owner = NULL; 161 list_unlink( &lock->list ); 162 162 #endif 163 163
Note: See TracChangeset
for help on using the changeset viewer.