
please wait
void clear (memory_order sync = memory_order_seq_cst) volatile noexcept;void clear (memory_order sync = memory_order_seq_cst) noexcept;
false
).false
.enum
type memory_order:value | memory order | description |
---|---|---|
memory_order_relaxed | Relaxed | No synchronization of side effects. |
memory_order_consume | Consume |
Synchronizes the visible side effects on values carrying dependencies from the last release or sequentially consistent operation. |
memory_order_acquire | Acquire | Synchronizes all visible side effects from the last release or sequentially consistent operation. |
memory_order_release | Release | Synchronizes side effects with the next consume or acquire operation. |
memory_order_seq_cst | Sequentially consistent | Synchronizes all visible side effects with the other sequentially consistent operations, following a single total order. |
value | memory order | description |
---|---|---|
memory_order_relaxed | Relaxed | No synchronization of side effects. |
memory_order_release | Release | Synchronizes side effects with the next consume or acquire operation. |
memory_order_seq_cst | Sequentially consistent | Synchronizes all visible side effects with the other sequentially consistent operations, following a single total order. |
|
|
thread #1 thread #2 thread #3 thread #4 thread #5 thread #6 thread #7 thread #8 thread #9 thread #10 |