Changeset 436 for trunk/kernel/libk/remote_rwlock.c
- Timestamp:
- Mar 7, 2018, 9:02:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_rwlock.c
r433 r436 2 2 * remote_rwlock.c - kernel remote rwlock implementation. 3 3 * 4 * Authors Alain Greiner (2016,2017 )4 * Authors Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 41 41 hal_remote_sw ( XPTR( lock_cxy , &lock_ptr->count ) , 0 ); 42 42 43 #if CONFIG_DEBUG_ LOCKS44 45 43 #if CONFIG_DEBUG_REMOTE_RWLOCKS 44 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 45 xlist_entry_init( XPTR( lock_cxy , &lock_ptr->list ) ); 46 46 #endif 47 47 … … 86 86 thread_ptr->remote_locks++; 87 87 88 #if CONFIG_DEBUG_ LOCKS89 90 88 #if CONFIG_DEBUG_REMOTE_RWLOCKS 89 xlist_add_first( XPTR( local_cxy , &thread_ptr->xlocks_root ) , 90 XPTR( lock_cxy , &lock_ptr->list ) ); 91 91 #endif 92 92 … … 126 126 thread_ptr->remote_locks--; 127 127 128 #if CONFIG_DEBUG_ LOCKS129 128 #if CONFIG_DEBUG_REMOTE_RWLOCKS 129 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 130 130 #endif 131 131 … … 176 176 } 177 177 178 #if CONFIG_DEBUG_ LOCKS179 180 181 182 178 #if CONFIG_DEBUG_REMOTE_RWLOCKS 179 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , 180 XPTR( local_cxy , thread_ptr ) ); 181 xlist_add_first( XPTR( local_cxy , &thread_ptr->xlocks_root ) , 182 XPTR( lock_cxy , &lock_ptr->list ) ); 183 183 #endif 184 184 … … 210 210 211 211 #if CONFIG_LOCKS_OWNER 212 213 212 hal_remote_swd( XPTR( lock_cxy , &lock_ptr->owner ) , XPTR_NULL ); 213 xlist_unlink( XPTR( lock_cxy , &lock_ptr->list ) ); 214 214 #endif 215 215
Note: See TracChangeset
for help on using the changeset viewer.