Lines Matching refs:WRITE_ONCE
37 WRITE_ONCE(b, 1);
41 WRITE_ONCE() are optional. Without the READ_ONCE(), the compiler might
42 fuse the load from "a" with other loads. Without the WRITE_ONCE(),
55 So don't leave out either the READ_ONCE() or the WRITE_ONCE().
65 WRITE_ONCE(b, 1);
69 WRITE_ONCE(b, 1);
78 WRITE_ONCE(b, 1); /* BUG: No ordering vs. load from a!!! */
80 /* WRITE_ONCE(b, 1); -- moved up, BUG!!! */
83 /* WRITE_ONCE(b, 1); -- moved up, BUG!!! */
108 WRITE_ONCE(b, 1);
111 WRITE_ONCE(b, 2);
125 WRITE_ONCE(b, 1);
128 WRITE_ONCE(b, 2);
138 WRITE_ONCE(b, 2);
151 WRITE_ONCE(b, 1);
154 WRITE_ONCE(b, 2);
168 WRITE_ONCE(b, 1);
175 WRITE_ONCE(b, 1);
188 WRITE_ONCE(b, 1);
190 WRITE_ONCE(b, 2);
192 WRITE_ONCE(c, 1); /* BUG: No ordering against the read from "a". */
239 away the ordering. Careful use of READ_ONCE() and WRITE_ONCE()