mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
fix atomic_size_control copy ctor
This commit is contained in:
committed by
Christian Mazakas
parent
4be37cfdaf
commit
c046b916f8
@ -313,7 +313,7 @@ struct atomic_size_control
|
||||
|
||||
atomic_size_control(std::size_t ml_,std::size_t size_):
|
||||
pad0_{},ml{ml_},pad1_{},size{size_}{}
|
||||
atomic_size_control(atomic_size_control& x):
|
||||
atomic_size_control(const atomic_size_control& x):
|
||||
pad0_{},ml{x.ml.load()},pad1_{},size{x.size.load()}{}
|
||||
|
||||
/* padding to avoid false sharing internally and with sorrounding data */
|
||||
|
Reference in New Issue
Block a user