Functions | |
enum YepStatus | yepAtomic_CompareAndSwap_Relaxed_S32uS32uS32u (volatile Yep32u *value, Yep32u newValue, Yep32u oldValue) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old 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_CompareAndSwap_Acquire_S32uS32uS32u (volatile Yep32u *value, Yep32u newValue, Yep32u oldValue) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized after the compare-and-swap operation. More... | |
enum YepStatus | yepAtomic_CompareAndSwap_Release_S32uS32uS32u (volatile Yep32u *value, Yep32u newValue, Yep32u oldValue) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized before the compare-and-swap operation. More... | |
enum YepStatus | yepAtomic_CompareAndSwap_Ordered_S32uS32uS32u (volatile Yep32u *value, Yep32u newValue, Yep32u oldValue) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized both before and after the compare-and-swap operation. More... | |
enum YepStatus yepAtomic_CompareAndSwap_Relaxed_S32uS32uS32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u | oldValue | ||
) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old 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 compared and swapped. |
newValue | The new value to be written to the value variable if comparison is successful. |
oldValue | The expected value of the value variable. |
YepStatusOk | The newValue was successfully written to the value variable. |
YepStatusInvalidState | The operation failed because the value is different than the specified oldValue. |
YepStatusNullPointer | The value pointer is null. |
YepStatusMisalignedPointer | The value pointer is not naturally aligned. |
enum YepStatus yepAtomic_CompareAndSwap_Acquire_S32uS32uS32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u | oldValue | ||
) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized after the compare-and-swap operation.
value | Pointer to a synchronization variable to be atomically compared and swapped. |
newValue | The new value to be written to the value variable if comparison is successful. |
oldValue | The expected value of the value variable. |
YepStatusOk | The newValue was successfully written to the value variable. |
YepStatusInvalidState | The operation failed because the value is different than the specified oldValue. |
YepStatusNullPointer | The value pointer is null. |
YepStatusMisalignedPointer | The value pointer is not naturally aligned. |
enum YepStatus yepAtomic_CompareAndSwap_Release_S32uS32uS32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u | oldValue | ||
) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized before the compare-and-swap operation.
value | Pointer to a synchronization variable to be atomically compared and swapped. |
newValue | The new value to be written to the value variable if comparison is successful. |
oldValue | The expected value of the value variable. |
YepStatusOk | The newValue was successfully written to the value variable. |
YepStatusInvalidState | The operation failed because the value is different than the specified oldValue. |
YepStatusNullPointer | The value pointer is null. |
YepStatusMisalignedPointer | The value pointer is not naturally aligned. |
enum YepStatus yepAtomic_CompareAndSwap_Ordered_S32uS32uS32u | ( | volatile Yep32u * | value, |
Yep32u | newValue, | ||
Yep32u | oldValue | ||
) |
Atomically reads the value of the variable and, if it equals the expected value, replaces it with the old value. The memory state is synchronized both before and after the compare-and-swap operation.
value | Pointer to a synchronization variable to be atomically compared and swapped. |
newValue | The new value to be written to the value variable if comparison is successful. |
oldValue | The expected value of the value variable. |
YepStatusOk | The newValue was successfully written to the value variable. |
YepStatusInvalidState | The operation failed because the value is different than the specified oldValue. |
YepStatusNullPointer | The value pointer is null. |
YepStatusMisalignedPointer | The value pointer is not naturally aligned. |