1 //===-- Alarm.inc - Implement Win32 Alarm Support -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the Reid Spencer and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the Win32 Alarm support.
12 //===----------------------------------------------------------------------===//
17 /// NestedSOI - Sanity check. Alarms cannot be nested or run in parallel.
18 /// This ensures that they never do.
19 static bool NestedSOI = false;
21 void sys::SetupAlarm(unsigned seconds) {
22 assert(!NestedSOI && "sys::SetupAlarm calls cannot be nested!");
24 // FIXME: Implement for Win32
27 void sys::TerminateAlarm() {
28 assert(NestedSOI && "sys::TerminateAlarm called without sys::SetupAlarm!");
29 // FIXME: Implement for Win32
33 int sys::AlarmStatus() {
34 // FIXME: Implement for Win32