Changes between Version 17 and Version 18 of kernel_locks
- Timestamp:
- Sep 17, 2015, 2:06:25 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_locks
v17 v18 35 35 * '''mask''' : *ptr <= *ptr & mask 36 36 37 === __int '''_atomic_test_and_set'''( unsigned int* shared , unsigned int value ) === 38 This NON-blocking function test the current value of the variable pointed by the <shared> argument. 39 If the current value is 0, it uses an SC to give atomically a new value to the pointed variable. 40 * '''shared''' : pointer on the shared variable 41 * '''value''' : new value to be written in case of success. 42 43 Returns 0 if success. 44 Returns 1 if current value is non zero, or non atomic access. 45 37 46 == Simple lock access functions == 38 47 … … 66 75 === __void '''_sqt_lock_release'''( sqt_lock_t* lock )__ === 67 76 This function releases the SQT lock: It reset all "partial" locks on the path from bottom to top, using a normal write, and starting from bottom. 68