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 ArticleIs 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
More Pages to Explore .....