Changeset 408 for trunk/hal/generic/hal_atomic.h
- Timestamp:
- Dec 5, 2017, 4:20:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_atomic.h
r108 r408 68 68 /***************************************************************************************** 69 69 * This NON blocking function makes an atomic Compare-And-Swap on a 32 bits unsigned int 70 * shared variable, returning a Boolean to indicate both success and atomicity.70 * shared variable, returning a Boolean to indicate success. 71 71 ***************************************************************************************** 72 72 * @ ptr : pointer on the shared variable 73 73 * @ old : expected value for the shared variable 74 74 * @ new : value to be written if success 75 * @ return true if (current == old) and (access is atomic)75 * @ return true if success. 76 76 ****************************************************************************************/ 77 77 bool_t hal_atomic_cas( uint32_t * ptr,
Note: See TracChangeset
for help on using the changeset viewer.