summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc')
-rw-r--r--contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc b/contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc
new file mode 100644
index 000000000000..a362c999de76
--- /dev/null
+++ b/contrib/llvm-project/llvm/lib/Support/Windows/Watchdog.inc
@@ -0,0 +1,23 @@
+//===--- Windows/Watchdog.inc - Windows Watchdog Implementation -*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file provides the generic Windows implementation of the Watchdog class.
+//
+//===----------------------------------------------------------------------===//
+
+// TODO: implement.
+// Currently this is only used by PrettyStackTrace which is also unimplemented
+// on Windows. Roughly, a Windows implementation would use CreateWaitableTimer
+// and a second thread to run the TimerAPCProc.
+
+namespace llvm {
+ namespace sys {
+ Watchdog::Watchdog(unsigned int seconds) {}
+ Watchdog::~Watchdog() {}
+ }
+}