From liblfds.org
Jump to navigation Jump to search

Source File





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