define LFDS711_PAL_NO_COMPILER_BARRIERS

From liblfds.org
Jump to navigation Jump to search

Source File

└───liblfds711
    └───inc
        └───liblfds711
                lfds711_porting_abstraction_layer_compiler.h

Define

#define LFDS711_PAL_NO_COMPILER_BARRIERS

Example

#define LFDS711_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 LFDS711_PAL_BARRIER_COMPILER_LOAD, LFDS711_PAL_BARRIER_COMPILER_STORE and LFDS711_PAL_BARRIER_COMPILER_FULL must be omitted - not defined at all - and this define, LFDS711_PAL_NO_COMPILER_BARRIERS must exist. It needs no value, it needs just to be defined.

See Also