Perform a write fence, i.e., enforce ordering between the previous and the next write operations: make sure that no previous write will be swapped with the any following write operation.
When no other synchronization mechanism is used, this is required between writes of fields that are accessed by concurrent threads to ensure that the order seen by the reading thread corresponds to the syntactical order the writes were performed in.
write operations: make sure that no previous write will be swapped with the any
following write operation.
When no other synchronization mechanism is used, this is required between writes
of fields that are accessed by concurrent threads to ensure that the order seen
by the reading thread corresponds to the syntactical order the writes were
performed in.