enum lfds711_misc_cas_strength

From liblfds.org
Revision as of 18:11, 16 February 2017 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See Also