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 | ba041f45fe42be353f62e44b7f29b6a7eee6bc51 (patch) | |
tree | ef2adf62ac891484229792e8f9d6befda93ee3bd /lib/System/Unix | |
parent | e220e8cc070db27c4a6259e951fc93538a824d61 (diff) |
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/System/Unix')
-rw-r--r-- | lib/System/Unix/Alarm.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/System/Unix/Alarm.inc b/lib/System/Unix/Alarm.inc index 7faa6afa9a..28ff1b8a63 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); +} |