Functions | |
enum YepStatus | yepAtomic_Swap_Relaxed_S32uS32u_S32u (volatile Yep32u *value, Yep32u newValue, Yep32u *oldValue) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is not synchronized, and changes made by other cores to other variables are not guranteed to be visible to the local thread. More... | |
enum YepStatus | yepAtomic_Swap_Acquire_S32uS32u_S32u (volatile Yep32u *value, Yep32u newValue, Yep32u *oldValue) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized after the exchange operation. More... | |
enum YepStatus | yepAtomic_Swap_Release_S32uS32u_S32u (volatile Yep32u *value, Yep32u newValue, Yep32u *oldValue) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized before the exchange operation. More... | |
enum YepStatus | yepAtomic_Swap_Ordered_S32uS32u_S32u (volatile Yep32u *value, Yep32u newValue, Yep32u *oldValue) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized both before and after the exchange operation. More... | |
enum YepStatus yepAtomic_Swap_Relaxed_S32uS32u_S32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u * | oldValue | ||
) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is not synchronized, and changes made by other cores to other variables are not guranteed to be visible to the local thread.
value | Pointer to a synchronization variable to be atomically swapped. |
newValue | The new value to be written to the synchronization variable. |
oldValue | Pointer to the variable to receive the old value of the synchronization variable. |
YepStatusOk | The atomic swap operation successfully finished. |
YepStatusNullPointer | Either value or oldValue pointer is null. |
YepStatusMisalignedPointer | Either value or oldValue pointer is not naturally aligned. |
enum YepStatus yepAtomic_Swap_Acquire_S32uS32u_S32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u * | oldValue | ||
) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized after the exchange operation.
value | Pointer to a synchronization variable to be atomically swapped. |
newValue | The new value to be written to the synchronization variable. |
oldValue | Pointer to the variable to receive the old value of the synchronization variable. |
YepStatusOk | The atomic swap operation successfully finished. |
YepStatusNullPointer | Either value or oldValue pointer is null. |
YepStatusMisalignedPointer | Either value or oldValue pointer is not naturally aligned. |
enum YepStatus yepAtomic_Swap_Release_S32uS32u_S32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u * | oldValue | ||
) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized before the exchange operation.
value | Pointer to a synchronization variable to be atomically swapped. |
newValue | The new value to be written to the synchronization variable. |
oldValue | Pointer to the variable to receive the old value of the synchronization variable. |
YepStatusOk | The atomic swap operation successfully finished. |
YepStatusNullPointer | Either value or oldValue pointer is null. |
YepStatusMisalignedPointer | Either value or oldValue pointer is not naturally aligned. |
enum YepStatus yepAtomic_Swap_Ordered_S32uS32u_S32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u * | oldValue | ||
) |
Atomically reads the old value of the variable and replaces it with a new value. The memory state is synchronized both before and after the exchange operation.
value | Pointer to a synchronization variable to be atomically swapped. |
newValue | The new value to be written to the synchronization variable. |
oldValue | Pointer to the variable to receive the old value of the synchronization variable. |
YepStatusOk | The atomic swap operation successfully finished. |
YepStatusNullPointer | Either value or oldValue pointer is null. |
YepStatusMisalignedPointer | Either value or oldValue pointer is not naturally aligned. |