Difference between revisions of "r7.1.1:Enum lfds711 misc cas strength"
Jump to navigation
Jump to search
m (1 revision imported) |
(No difference)
|
Latest revision as of 18:11, 16 February 2017
Source File
└───liblfds711 └───inc └───liblfds711 lfds711_misc.h
Enum
enum lfds711_misc_cas_strength { LFDS711_MISC_CAS_STRENGTH_WEAK, LFDS711_MISC_CAS_STRENGTH_STRONG };
Values
LFDS711_MISC_CAS_STRENGTH_WEAK
- Atomic operations can fail due to aborts, i.e. the compare operation itself failed because another memory access operation occurred.
LFDS711_MISC_CAS_STRENGTH_STRONG
- Atomic operations operation genuinely fails, e.g. a compare doesn't compare, i.e. the atomic operation must be retried until the operation itself succeeds, even if the outcome of the operation is a failure.
Notes
This enum is only used by the liblfds porting layer, when implementing the CAS and DWCAS macros.