1 //===--- Watchdog.h - Watchdog timer ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the llvm::sys::Watchdog class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_SUPPORT_WATCHDOG_H
15 #define LLVM_SUPPORT_WATCHDOG_H
17 #include "llvm/Support/Compiler.h"
22 /// This class provides an abstraction for a timeout around an operation
23 /// that must complete in a given amount of time. Failure to complete before
24 /// the timeout is an unrecoverable situation and no mechanisms to attempt
25 /// to handle it are provided.
28 Watchdog(unsigned int seconds);
32 Watchdog(const Watchdog &other) LLVM_DELETED_FUNCTION;
33 Watchdog &operator=(const Watchdog &other) LLVM_DELETED_FUNCTION;