[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.


https://reviews.llvm.org/D38704

Files:
  src/CMakeLists.txt
  src/RWMutex.hpp
  src/UnwindCursor.hpp
  src/config.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38704.119094.patch
Type: text/x-patch
Size: 7174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171015/40f05b17/attachment.bin>


More information about the cfe-commits mailing list