Changes between Version 18 and Version 19 of kernel_locks
- Timestamp:
- Sep 17, 2015, 2:07:07 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_locks
v18 v19 35 35 * '''mask''' : *ptr <= *ptr & mask 36 36 37 === __ int '''_atomic_test_and_set'''( unsigned int* shared , unsigned int value ) ===37 === __unsigned int '''_atomic_test_and_set'''( unsigned int* shared , unsigned int value ) === 38 38 This NON-blocking function test the current value of the variable pointed by the <shared> argument. 39 39 If the current value is 0, it uses an SC to give atomically a new value to the pointed variable.