|
clang 23.0.0git
|
In-flight slot used to dedup concurrent producers for the same key. More...
#include "clang/DependencyScanning/DependencyScanningFilesystem.h"
Public Member Functions | |
| void | publish (llvm::ErrorOr< const CachedFileSystemEntry * > R) |
| Publishes the producer's outcome to this slot and wakes all waiters. | |
Public Attributes | |
| std::mutex | Mutex |
| std::condition_variable | CondVar |
| bool | Done = false |
| llvm::ErrorOr< const CachedFileSystemEntry * > | Result = std::error_code{} |
In-flight slot used to dedup concurrent producers for the same key.
The producer publishes via publish(); waiters block on Mutex/CV until Done is set. Result holds the resolved entry, or an uncached-negative error shared with overlapping waiters but not persisted in the shard.
Definition at line 164 of file DependencyScanningFilesystem.h.
|
inline |
| std::condition_variable clang::dependencies::DependencyScanningFilesystemSharedCache::InProgressEntry::CondVar |
Definition at line 166 of file DependencyScanningFilesystem.h.
Referenced by publish().
Definition at line 167 of file DependencyScanningFilesystem.h.
Referenced by publish().
| std::mutex clang::dependencies::DependencyScanningFilesystemSharedCache::InProgressEntry::Mutex |
Definition at line 165 of file DependencyScanningFilesystem.h.
Referenced by publish().
| llvm::ErrorOr<const CachedFileSystemEntry *> clang::dependencies::DependencyScanningFilesystemSharedCache::InProgressEntry::Result = std::error_code{} |
Definition at line 168 of file DependencyScanningFilesystem.h.
Referenced by publish().