Quantcast
Channel: Is std::call_once multi-processor safe? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Herb Sutter for Is std::call_once multi-processor safe?

Yes, this is the whole point of call_once. Thread-safe means on the same or different processors, on an ordinary machine with shared memory.

View Article



Is std::call_once multi-processor safe?

The CPP Reference states std::call_once is thread safe:Executes the function f exactly once, even if called from several threads.Will I need to use memory barriers when utilizing lazy initialization if...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images