[PATCH] Add a thread-safe version of RefCountedBase

Ben Langmuir blangmuir at apple.com
Mon Mar 3 17:49:53 PST 2014


This patch adds a variant of RefCountedBase that uses a std::atomic_int to store the  reference count.  This class will be used by vfs::FileSystem in Clang so that the ref count won’t prevent vfs::FileSystem from ever being thread safe.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: threadsaferefcountedbase.patch
Type: application/octet-stream
Size: 1494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140303/1a3bb9b6/attachment.obj>


More information about the llvm-commits mailing list