diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-02-08 22:47:39 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-02-08 22:47:39 +0000 |
commit | c113ec724288696f4202924df966628a5988c29f (patch) | |
tree | ef2adf62ac891484229792e8f9d6befda93ee3bd /lib | |
parent | 0d879e080e7174248f4d85a786b72c81ba2ade3e (diff) | |
download | external_llvm-c113ec724288696f4202924df966628a5988c29f.zip external_llvm-c113ec724288696f4202924df966628a5988c29f.tar.gz external_llvm-c113ec724288696f4202924df966628a5988c29f.tar.bz2 |
Add a Sleep() function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Alarm.inc | 4 | ||||
-rw-r--r-- | lib/System/Win32/Alarm.inc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/System/Unix/Alarm.inc b/lib/System/Unix/Alarm.inc index 7faa6af..28ff1b8 100644 --- a/lib/System/Unix/Alarm.inc +++ b/lib/System/Unix/Alarm.inc @@ -66,3 +66,7 @@ int sys::AlarmStatus() { return 1; return 0; } + +void Sleep(unsigned n) { + ::sleep(n); +} diff --git a/lib/System/Win32/Alarm.inc b/lib/System/Win32/Alarm.inc index 2f1a280..64a2107 100644 --- a/lib/System/Win32/Alarm.inc +++ b/lib/System/Win32/Alarm.inc @@ -34,3 +34,7 @@ int sys::AlarmStatus() { // FIXME: Implement for Win32 return 0; } + +void Sleep(unsigned n) { + Sleep(n*1000); +} |