enum lfds700_misc_cas_strength

From liblfds.org
Jump to navigation Jump to search

Source File

└───liblfds700
    └───inc
        └───liblfds700
                lfds700_misc.h

Enum

enum lfds700_misc_cas_strength
{
  LFDS700_MISC_CAS_STRENGTH_WEAK,
  LFDS700_MISC_CAS_STRENGTH_STRONG
};

Values

LFDS700_MISC_CAS_STRENGTH_WEAK

Atomic operations can fail due to aborts, i.e. the compare operation itself failed because another memory access operation occurred.

LFDS700_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.

See Also