enum lfds710_misc_cas_strength

From liblfds.org
Revision as of 21:04, 7 May 2016 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_misc.h

Enum

enum lfds710_misc_cas_strength
{
  LFDS710_MISC_CAS_STRENGTH_WEAK,
  LFDS710_MISC_CAS_STRENGTH_STRONG
};

Values

LFDS710_MISC_CAS_STRENGTH_WEAK

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

LFDS710_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