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) AbandonedPublic Authored by DanielMcIntosh-IBM on Nov 2 2021, 3:46 PM.
Details
Summary Add an early return from __sp_mut::lock() and unlock when we're in a Depends on D110349
Diff Detail
Event TimelineDanielMcIntosh-IBM created this revision. DanielMcIntosh-IBM added inline comments.
Revision Contents
Diff 385584 libcxx/src/memory.cpp
|
I'd leave the 4-space indentation alone, since that seems to be the local style in the rest of libcxx.