Changes between Version 12 and Version 13 of kernel_locks
- Timestamp:
- Jan 19, 2015, 3:17:52 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_locks
v12 v13 17 17 The '''simple_lock_t''', '''sbt_lock_t''', and '''spin_lock_t''' structures are implemented to have one single lock in a 64 bytes cache line, and should be aligned on a cache line boundary. 18 18 19 == Atomic access function s==19 == Atomic access function == 20 20 21 21 === unsigned int '''_atomic_increment'''( unsigned int * shared , unsigned int increment ) === … … 23 23 * '''shared''' : pointer on the shared variable 24 24 * '''increment''' : increment value 25 It returns the value of the shared variable before increment. 25 26 26 27 == Simple lock access functions ==