-//===-- Alarm.inc - Implement Unix Alarm Support --------------------------===//
+//===-- Alarm.inc - Implement Unix Alarm Support ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the Reid Spencer and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
/// user presses CTRL-C.
static volatile bool AlarmCancelled = false;
-/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the
+/// AlarmTriggered - This flag is set by the SIGALRM signal handler if the
/// alarm was triggered.
static volatile bool AlarmTriggered = false;
-/// NestedSOI - Sanity check. Alarms cannot be nested or run in parallel.
+/// NestedSOI - Sanity check. Alarms cannot be nested or run in parallel.
/// This ensures that they never do.
static bool NestedSOI = false;
return 1;
return 0;
}
+
+void sys::Sleep(unsigned n) {
+ ::sleep(n);
+}