define LFDS710_PAL_NO_COMPILER_BARRIERS

From liblfds.org
Revision as of 05:46, 27 May 2016 by Admin (talk | contribs) (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source File

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_porting_abstraction_layer_compiler.h

Define

#define LFDS710_PAL_NO_COMPILER_BARRIERS

Example

#define LFDS710_PAL_NO_COMPILER_BARRIERS

Optionality

This define is mandatory when it is required, and the library cannot compile if it is not set.

Notes

On some platforms, atomic operations have built in compiler barriers. On others, they do not. On platforms which do have compiler barriers built into their atomic operations, the three defines LFDS710_PAL_BARRIER_COMPILER_LOAD, LFDS710_PAL_BARRIER_COMPILER_STORE and LFDS710_PAL_BARRIER_COMPILER_FULL must be omitted - not defined at all - and this define, LFDS710_PAL_NO_COMPILER_BARRIERS must exist. It needs no value, it needs just to be defined.

See Also