diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-25 13:24:59 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-25 13:24:59 +0000 |
commit | 7739159d2c11220045031f1be0ec443e4b2bc511 (patch) | |
tree | fbf2c8b069f44fc0ae9e40a8479e28e902fbec54 /staging_vespalib | |
parent | 60a46e6bd697af9ffa4662dea221c901a7202e76 (diff) |
Use relaxed store.
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/clock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/clock.cpp b/staging_vespalib/src/vespa/vespalib/util/clock.cpp index 5ae9d8cfb45..18892a3a7ea 100644 --- a/staging_vespalib/src/vespa/vespalib/util/clock.cpp +++ b/staging_vespalib/src/vespa/vespalib/util/clock.cpp @@ -25,7 +25,7 @@ Clock::~Clock() void Clock::setTime() const { - _timeNS.store(fastos::ClockSteady::now() - fastos::SteadyTimeStamp::ZERO); + _timeNS.store(fastos::ClockSteady::now() - fastos::SteadyTimeStamp::ZERO, std::memory_order_relaxed); } void Clock::Run(FastOS_ThreadInterface *thread, void *arguments) |