Changes between Version 17 and Version 18 of kernel_locks


Ignore:
Timestamp:
Sep 17, 2015, 2:06:25 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_locks

    v17 v18  
    3535 * '''mask''' : *ptr <= *ptr & mask
    3636
     37 === __int '''_atomic_test_and_set'''( unsigned int*  shared , unsigned int value ) ===
     38This NON-blocking function test the current value of the variable pointed by the <shared> argument.
     39If 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
     43Returns 0 if success.
     44Returns 1 if current value is non zero, or non atomic access.
     45
    3746== Simple lock access functions ==
    3847
     
    6675 === __void '''_sqt_lock_release'''( sqt_lock_t*  lock )__ ===
    6776This 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