r7.1.0:LFDS710_MISC_MAKE_VALID_ON_CURRENT_LOGICAL_CORE_INITS_COMPLETED_BEFORE_NOW_ON_ANY_OTHER_LOGICAL_CORE

From liblfds.org
Jump to navigation Jump to search

Source File

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

Define

#define LFDS710_MISC_MAKE_VALID_ON_CURRENT_LOGICAL_CORE_INITS_COMPLETED_BEFORE_NOW_ON_ANY_OTHER_LOGICAL_CORE

Notes

This define is of critical importance to the correct operation, by users, of the library.

The basic rule is that any stores performed by a thread never become visible to any other thread, until the thread which performs the stores saves its work to memory, and the thread which is loading these stores updates its local copy of memory.

This define (it's not really a macro, as it takes no arguments) performs that update.

So whenever a thread initializes a data structure, the other threads which wish to use that data structure must issue this define before they do so.

See Also