[PATCH] D38704: [libunwind] Abstract rwlocks into a class, provide a SRW lock implementation for windows
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 15 12:50:08 PDT 2017
mstorsjo updated this revision to Diff 119094.
mstorsjo retitled this revision from "[libunwind] Emulate pthread rwlocks via SRW locks for windows" to "[libunwind] Abstract rwlocks into a class, provide a SRW lock implementation for windows".
mstorsjo edited the summary of this revision.
mstorsjo added reviewers: majnemer, zturner.
mstorsjo removed subscribers: majnemer, zturner.
mstorsjo added a comment.
Herald added a subscriber: mgorny.
Instead of trying to emulate the pthread rwlocks api with windows implementations, add a RWMutex class (with an interface similar to SmartRWMutex from LLVM) with inline implementations, which can either be no-ops (for no-threads configurations), implemented with SRW locks for windows or pthreads.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7174 bytes
Desc: not available
More information about the cfe-commits