diff --git a/GaudiAud/src/ProcStats.cpp b/GaudiAud/src/ProcStats.cpp index 6c30eb0b069309d8e5a8a772ff797e10d9fbf43d..c7af30f10f92e1f88a4416fd763d647454d67563 100644 --- a/GaudiAud/src/ProcStats.cpp +++ b/GaudiAud/src/ProcStats.cpp @@ -241,10 +241,8 @@ struct linux_proc { #endif // __linux__ or __APPLE__ ProcStats* ProcStats::instance() { - static std::once_flag alloc_instance_once; - static std::unique_ptr<ProcStats> inst; - std::call_once( alloc_instance_once, []() { inst = std::make_unique<ProcStats>(); } ); - return inst.get(); + static ProcStats inst{}; + return &inst; } ProcStats::ProcStats() {