Add an early return from __sp_mut::lock() and unlock when we're in a
single-threaded environment to prevent the shared_ptr std::atomic_... overloads
from calling mutex functions when the threading API is disabled.
Depends on D110349
Differential D113066
[libcxx][SystemZ][z/OS] Update libcxx/src/memory.cpp to accommodate POSIX(OFF) DanielMcIntosh-IBM on Nov 2 2021, 3:46 PM. Authored by
Details
Add an early return from __sp_mut::lock() and unlock when we're in a Depends on D110349
Diff Detail
Unit Tests Event Timeline
|
I'd leave the 4-space indentation alone, since that seems to be the local style in the rest of libcxx.