Pārlūkot izejas kodu

Update env_posix.cc

naive_version
Shawn Zhong pirms 2 gadiem
vecāks
revīzija
7a2f64ed50
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      util/env_posix.cc

+ 2
- 2
util/env_posix.cc Parādīt failu

@ -870,7 +870,7 @@ class SingletonEnv {
public:
SingletonEnv() {
#if !defined(NDEBUG)
env_initialized_.store(true, std::memory_order::memory_order_relaxed);
env_initialized_.store(true, std::memory_order_relaxed);
#endif // !defined(NDEBUG)
static_assert(sizeof(env_storage_) >= sizeof(EnvType),
"env_storage_ will not fit the Env");
@ -887,7 +887,7 @@ class SingletonEnv {
static void AssertEnvNotInitialized() {
#if !defined(NDEBUG)
assert(!env_initialized_.load(std::memory_order::memory_order_relaxed));
assert(!env_initialized_.load(std::memory_order_relaxed));
#endif // !defined(NDEBUG)
}

Notiek ielāde…
Atcelt
Saglabāt