0002-callout.9-document-callout_reset_-m-s.patch

C++, 03/20/2010 01:39 AM

Download (1.95 KB)

View differences:

share/man/man9/Makefile
332 332
	callout.9 callout_init_mp.9 \
333 333
	callout.9 callout_pending.9 \
334 334
	callout.9 callout_reset.9 \
335
	callout.9 callout_reset_ms.9 \
336
	callout.9 callout_reset_s.9 \
335 337
	callout.9 callout_stop.9 \
336 338
	callout.9 timeout.9 \
337 339
	callout.9 untimeout.9
share/man/man9/callout.9
44 44
.Nm callout_init ,
45 45
.Nm callout_init_mp ,
46 46
.Nm callout_reset ,
47
.Nm callout_reset_s ,
48
.Nm callout_reset_ms ,
47 49
.Nm callout_stop ,
48 50
.Nm callout_active ,
49 51
.Nm callout_pending ,
......
61 63
.Fn callout_init_mp "struct callout *c"
62 64
.Ft void
63 65
.Fn callout_reset "struct callout *c" "int ticks" "timeout_t *func" "void *arg"
66
.Ft void
67
.Fn callout_reset_s "struct callout *c" "int s" "timeout_t *func" "void *arg"
68
.Ft void
69
.Fn callout_reset_ms "struct callout *c" "int ms" "timeout_t *func" "void *arg"
64 70
.Ft int
65 71
.Fn callout_stop "struct callout *c"
66 72
.Ft int
......
115 121
will be called with the argument
116 122
.Fa arg .
117 123
.Pp
124
The
125
.Fn callout_reset_s
126
and
127
.Fn callout_reset_ms
128
functions can be used in place of the
129
.Fn callout_reset
130
function with the timeout value expressed
131
in seconds and milliseconds, respectively.
132
.Pp
118 133
The function
119 134
.Fn callout_stop
120 135
cancels the callout associated with the callout handle
121
-