aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-31 22:24:20 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-31 22:24:20 +0000
commit7ea9de78ee29b57625ab189fc9747033181eb72a (patch)
tree685167eec5c82246fe2cb78a9e76879f6b7ae36d
parentc09e411102878c7f01ef707c2ac52eb3c76ab77b (diff)
Add a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77746 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/System/Alarm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/System/Alarm.h b/include/llvm/System/Alarm.h
index 9535d23f81..7c284167c2 100644
--- a/include/llvm/System/Alarm.h
+++ b/include/llvm/System/Alarm.h
@@ -39,7 +39,8 @@ namespace sys {
/// @returns -1=cancelled, 0=untriggered, 1=triggered
int AlarmStatus();
- /// Sleep for n seconds.
+ /// Sleep for n seconds. Warning: mixing calls to Sleep() and other *Alarm
+ /// calls may be a bad idea on some platforms (source: Linux man page).
/// @returns nothing.
void Sleep(unsigned n);