Changeset 23 for trunk/kernel/libk/remote_rwlock.c
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_rwlock.c
r1 r23 2 2 * remote_rwlock.c - kernel remote rwlock implementation. 3 3 * 4 * Authors Mohamed Karaoui (2015) 5 * Alain Greiner (2016) 4 * Authors Alain Greiner (2016,2017) 6 5 * 7 6 * Copyright (c) UPMC Sorbonne Universites … … 67 66 68 67 // get next free ticket 69 ticket = hal_remote_ lw( ticket_xp);70 71 // loop to take the lock68 ticket = hal_remote_atomic_add( ticket_xp , 1 ); 69 70 // busy waiting loop to take the lock 72 71 while( ticket != hal_remote_lw( current_xp ) ) 73 72 { … … 147 146 148 147 // get next free ticket 149 ticket = hal_remote_ lw( ticket_xp);148 ticket = hal_remote_atomic_add( ticket_xp , 1 ); 150 149 151 150 // loop to take the lock
Note: See TracChangeset
for help on using the changeset viewer.