clang
10.0.0git
|
This class is a shared cache, that caches the 'stat' and 'open' calls to the underlying real file system. More...
#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"
Classes | |
struct | SharedFileSystemEntry |
Public Member Functions | |
DependencyScanningFilesystemSharedCache () | |
SharedFileSystemEntry & | get (StringRef Key) |
Returns a cache entry for the corresponding key. More... | |
This class is a shared cache, that caches the 'stat' and 'open' calls to the underlying real file system.
It is sharded based on the hash of the key to reduce the lock contention for the worker threads.
Definition at line 110 of file DependencyScanningFilesystem.h.
DependencyScanningFilesystemSharedCache::DependencyScanningFilesystemSharedCache | ( | ) |
Definition at line 103 of file DependencyScanningFilesystem.cpp.
References max().
DependencyScanningFilesystemSharedCache::SharedFileSystemEntry & DependencyScanningFilesystemSharedCache::get | ( | StringRef | Key | ) |
Returns a cache entry for the corresponding key.
A new cache entry is created if the key is not in the cache. This is a thread safe call.
Definition at line 118 of file DependencyScanningFilesystem.cpp.
References clang::hash_value().