r202986 - Use ThreadSafeRefCountedBase for vfs::FileSystem
Ben Langmuir
blangmuir at apple.com
Wed Mar 5 07:25:59 PST 2014
Author: benlangmuir
Date: Wed Mar 5 09:25:59 2014
New Revision: 202986
URL: http://llvm.org/viewvc/llvm-project?rev=202986&view=rev
Log:
Use ThreadSafeRefCountedBase for vfs::FileSystem
Allow trivial read-only filesystems such as RealFileSystem to be shared
between threads.
Modified:
cfe/trunk/include/clang/Basic/VirtualFileSystem.h
Modified: cfe/trunk/include/clang/Basic/VirtualFileSystem.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/VirtualFileSystem.h?rev=202986&r1=202985&r2=202986&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/VirtualFileSystem.h (original)
+++ cfe/trunk/include/clang/Basic/VirtualFileSystem.h Wed Mar 5 09:25:59 2014
@@ -95,7 +95,7 @@ public:
};
/// \brief The virtual file system interface.
-class FileSystem : public RefCountedBase<FileSystem> {
+class FileSystem : public llvm::ThreadSafeRefCountedBase<FileSystem> {
public:
virtual ~FileSystem();
More information about the cfe-commits
mailing list