r7.1.1:LFDS711_MISC_MAKE_VALID_ON_CURRENT_LOGICAL_CORE_INITS_COMPLETED_BEFORE_NOW_ON_ANY_OTHER_LOGICAL_CORE

From liblfds.org
Revision as of 18:12, 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

Define

#define LFDS711_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