summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-06-05 17:25:09 +0300
committerunknown <monty@narttu.mysql.fi>2003-06-05 17:25:09 +0300
commita3afb2bcbea96d4c5a326204151fb63cd0411aec (patch)
treed028661a492bef41492ab112517a1395a5ea8741 /mysys
parenta86c80e46a8a8eec5058eaaf8190ea69ecca0cf5 (diff)
downloadmariadb-git-a3afb2bcbea96d4c5a326204151fb63cd0411aec.tar.gz
Added function comment
Diffstat (limited to 'mysys')
-rw-r--r--mysys/thr_alarm.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/mysys/thr_alarm.c b/mysys/thr_alarm.c
index 1f9c4c3b068..7a845e3eb00 100644
--- a/mysys/thr_alarm.c
+++ b/mysys/thr_alarm.c
@@ -122,9 +122,21 @@ void init_thr_alarm(uint max_alarms)
/*
Request alarm after sec seconds.
- A pointer is returned with points to a non-zero int when the alarm has been
- given. This can't be called from the alarm-handling thread.
- Returns 0 if no more alarms are allowed (aborted by process)
+
+ SYNOPSIS
+ thr_alarm()
+ alrm Pointer to alarm detection
+ alarm_data Structure to store in alarm queue
+
+ NOTES
+ This function can't be called from the alarm-handling thread.
+
+ RETURN VALUES
+ 0 ok
+ 1 If no more alarms are allowed (aborted by process)
+
+ Stores in first argument a pointer to a non-zero int which is set to 0
+ when the alarm has been given
*/
my_bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)