Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern also comment on the meaning of timo=0 for cv_timedw...



details:   https://anonhg.NetBSD.org/src/rev/bf330b73609c
branches:  trunk
changeset: 785315:bf330b73609c
user:      apb <apb%NetBSD.org@localhost>
date:      Fri Mar 08 08:36:37 2013 +0000

description:
also comment on the meaning of timo=0 for cv_timedwait_sig.

diffstat:

 sys/kern/kern_condvar.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 986407a77d4b -r bf330b73609c sys/kern/kern_condvar.c
--- a/sys/kern/kern_condvar.c   Fri Mar 08 08:35:09 2013 +0000
+++ b/sys/kern/kern_condvar.c   Fri Mar 08 08:36:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_condvar.c,v 1.31 2013/03/08 08:35:09 apb Exp $    */
+/*     $NetBSD: kern_condvar.c,v 1.32 2013/03/08 08:36:37 apb Exp $    */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_condvar.c,v 1.31 2013/03/08 08:35:09 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_condvar.c,v 1.32 2013/03/08 08:36:37 apb Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -268,6 +268,8 @@
  *     exiting.  Returns zero if awoken normally, EWOULDBLOCK if the
  *     timeout expires, ERESTART if a signal was received and the system
  *     call is restartable, or EINTR otherwise.
+ *
+ *     timo is a timeout in ticks.  timo = 0 specifies an infinite timeout.
  */
 int
 cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mtx, int timo)



Home | Main Index | Thread Index | Old Index