10#ifndef SEARCHCANCELLATION_H
11#define SEARCHCANCELLATION_H
37 static void setFlag(std::atomic<bool>* flag);
RAII guard for automatic cancellation flag management.
Definition SearchCancellation.h:71
SearchCancellationGuard(SearchCancellationGuard &&)=delete
SearchCancellationGuard(std::atomic< bool > *flag)
SearchCancellationGuard(const SearchCancellationGuard &)=delete
SearchCancellationGuard & operator=(SearchCancellationGuard &&)=delete
~SearchCancellationGuard()
SearchCancellationGuard & operator=(const SearchCancellationGuard &)=delete
Global search cancellation context using thread-local storage.
Definition SearchCancellation.h:31
static std::atomic< bool > * getFlag()
Get current thread's cancellation flag.
static void clear()
Clear current thread's cancellation flag.
static bool shouldCancel()
Check if current thread should cancel (convenience method)
static void setFlag(std::atomic< bool > *flag)
Set cancellation flag for current thread.
Definition AbstractAllTermDocs.h:12