Changeset 23 for trunk/hal/generic/hal_atomic.h
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_atomic.h
r17 r23 67 67 68 68 /***************************************************************************************** 69 * This blocking function atomically increments a 32 bits unsigned int shared variable,70 * returning only when atomic increment is successful.71 *****************************************************************************************72 * @ ptr : pointer on the shared variable73 * @ return shared variable value before increment74 ****************************************************************************************/75 uint32_t hal_atomic_inc( uint32_t * ptr );76 77 /*****************************************************************************************78 * This blocking function atomically decrements a 32 bits unsigned int shared variable,79 * returning only when atomic decrement is successful.80 *****************************************************************************************81 * @ ptr : pointer on the shared variable82 * @ return shared variable value before decrement83 ****************************************************************************************/84 uint32_t hal_atomic_dec( uint32_t * ptr );85 86 /*****************************************************************************************87 69 * This NON blocking function makes an atomic Compare-And-Swap on a 32 bits unsigned int 88 70 * shared variable, returning a Boolean to indicate both success and atomicity.
Note: See TracChangeset
for help on using the changeset viewer.