|
|
|||
File indexing completed on 2026-05-10 08:44:35
0001 //===--- Watchdog.h - Watchdog timer ----------------------------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // This file declares the llvm::sys::Watchdog class. 0010 // 0011 //===----------------------------------------------------------------------===// 0012 0013 #ifndef LLVM_SUPPORT_WATCHDOG_H 0014 #define LLVM_SUPPORT_WATCHDOG_H 0015 0016 #include "llvm/Support/Compiler.h" 0017 0018 namespace llvm { 0019 namespace sys { 0020 0021 /// This class provides an abstraction for a timeout around an operation 0022 /// that must complete in a given amount of time. Failure to complete before 0023 /// the timeout is an unrecoverable situation and no mechanisms to attempt 0024 /// to handle it are provided. 0025 class Watchdog { 0026 public: 0027 Watchdog(unsigned int seconds); 0028 ~Watchdog(); 0029 private: 0030 // Noncopyable. 0031 Watchdog(const Watchdog &other) = delete; 0032 Watchdog &operator=(const Watchdog &other) = delete; 0033 }; 0034 } 0035 } 0036 0037 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|