Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions llvm/include/llvm/Support/ThreadPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ class LLVM_ABI SingleThreadExecutor : public ThreadPoolInterface {
/// Blocking destructor: the pool will first execute the pending tasks.
~SingleThreadExecutor() override;

// Excplicitly disable copy. This is necessary for the MSVC LLVM_DYLIB build
// because MSVC tries to generate copy constructor and assignment operator
// for classes marked with `__declspec(dllexport)`.
SingleThreadExecutor(const SingleThreadExecutor &) = delete;
SingleThreadExecutor &operator=(const SingleThreadExecutor &) = delete;

/// Blocking wait for all the tasks to execute first
void wait() override;

Expand Down