The NetBSD Project

CVS log for src/share/man/man9/condvar.9

[BACK] Up to [cvs.NetBSD.org] / src / share / man / man9

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Thu Aug 27 14:14:00 2020 UTC (2 years, 9 months ago) by fcambus
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Fix a bunch of typos in various kernel man pages.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Aug 19 02:19:07 2020 UTC (2 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

s/ be be / be /

Revision 1.28 / (download) - annotate - [select for diffs], Mon May 11 03:59:33 2020 UTC (3 years ago) by riastradh
Branch: MAIN
Changes since 1.27: +1 -78 lines
Diff to previous 1.27 (colored)

Remove timedwaitclock.

This did not fix the bug I hoped it would fix in futex, and needs
more design thought.  Might redo it somewhat differently later.

Revision 1.27 / (download) - annotate - [select for diffs], Sun May 3 04:06:15 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Bump date.

Revision 1.26 / (download) - annotate - [select for diffs], Sun May 3 04:05:50 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.25: +78 -1 lines
Diff to previous 1.25 (colored)

Document cv_timedwaitclock.

Revision 1.25 / (download) - annotate - [select for diffs], Sun May 3 04:05:28 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.24: +14 -1 lines
Diff to previous 1.24 (colored)

Add a note about setting the timeout to zero _and_ returning success.

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 3 04:05:00 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.23: +1 -3 lines
Diff to previous 1.23 (colored)

Simplify example of cv_timedwaitbt.

It is simpler if there is only one place we check the condition.

That said, there are cases where the caller needs to re-check before
choosing to fail (e.g., futex_wait in kern/sys_futex.c, which must
verify the condition before taking destructive steps to abort the
wait).  But it's not clear that that's the norm.

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 3 04:04:32 2020 UTC (3 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.22: +21 -13 lines
Diff to previous 1.22 (colored)

Update cv_timedwaitbt documentation to reflect useful reality.

Previously, a negative timeout was forbidden (kassert), a zero or
maybe even just a sufficiently small timeout would block forever, and
we would subtract the time elapsed -- possibly longer than the
timeout, leading to a negative updated timeout, which would trip the
kassert the next time around if used as advertised.  DERP.

Now negative timeouts are still forbidden in order to detect usage
mistakes, but a zero timeout fails immediately and we clamp the
subtracted time to be at least zero so you can always safely call
cv_timedwaitbt in a loop.

(An alternative would be to fail immediately for all nonpositive
timeouts, and to leave in the timespec the negative time we overshot,
but it's not clear this would be useful.)

Revision 1.19.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:26 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.19.4.2: +16 -9 lines
Diff to previous 1.19.4.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 10 17:16:21 2020 UTC (3 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411
Changes since 1.21: +17 -10 lines
Diff to previous 1.21 (colored)

- Make this needed sequence always work for condvars, by not touching the CV
  again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.

Revision 1.19.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:22 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.19.4.1: +9 -2 lines
Diff to previous 1.19.4.1 (colored) to branchpoint 1.19 (colored)

Merge changes from current as of 20200406

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 12 02:34:55 2019 UTC (3 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.20: +9 -2 lines
Diff to previous 1.20 (colored)

Point out that spurious wake-ups are possible, and that an LWP should
check for resource availability after being awoken.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:41 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 12 11:02:22 2019 UTC (4 years, 1 month ago) by abhinav
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Split the examples into two separate literal sections

ok wiz@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 13 09:09:28 2017 UTC (5 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat
Branch point for: phil-wifi
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Bump date for previous.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Nov 12 21:14:33 2017 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Replace xref mb(9) by xref membar_ops(3).

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 12 20:04:28 2017 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.16: +29 -17 lines
Diff to previous 1.16 (colored)

Rework cv_timedwaitbt documentation and example code.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 3 21:28:48 2017 UTC (5 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.15: +13 -13 lines
Diff to previous 1.15 (colored)

Remove workaround for ancient HTML generation code.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 3 21:16:36 2017 UTC (5 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.14: +45 -5 lines
Diff to previous 1.14 (colored)

Update to include new cv_timedwaitbt() and cv_timedwaitbt_sig().

Also update code example.

OK riastradh@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 2 12:54:13 2010 UTC (12 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, uebayasi-xip-base7, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, localcount-20160914, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.13: +1 -7 lines
Diff to previous 1.13 (colored)

Remove boilerplate in CODE REFERENCES on file paths.
Describe in intro(9) how to read paths in the CODE REFERENCES section.

Revision 1.10.4.3 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:23 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.10.4.2: +2 -2 lines
Diff to previous 1.10.4.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:38:09 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.11.2.1: +3 -3 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 6 07:08:31 2008 UTC (14 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Spellos

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sun Jun 29 08:51:20 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.10.4.1: +18 -1 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored)

Sync with HEAD.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:03 2008 UTC (14 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.11: +19 -2 lines
Diff to previous 1.11 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:13:53 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.10.6.1: +19 -2 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 4 11:24:36 2008 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.11: +19 -2 lines
Diff to previous 1.11 (colored)

Note that DIAGNOSTIC/LOCKDEBUG applies.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:41 2008 UTC (15 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Sun May 18 12:31:12 2008 UTC (15 years ago) by yamt
Branch: yamt-pf42
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 30 13:10:58 2008 UTC (15 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

Convert TNF licenses to new 2 clause variant

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:45:36 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.9: +9 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 26 14:16:27 2008 UTC (15 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.9: +9 -3 lines
Diff to previous 1.9 (colored)

Document that cv_timedwait with a ticks argument of zero behaves like
cv_wait.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Mar 29 17:40:36 2007 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.8: +20 -27 lines
Diff to previous 1.8 (colored)

- Note that cv_has_waiters() can only be used to assert that there are
  waiters sleeping non-interruptably (i.e., in cv_wait()). Prompted by
  a discussion with pooka@.
- Minor cosmetic changes.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 5 15:04:21 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.7: +9 -11 lines
Diff to previous 1.7 (colored)

Sync with latest changes.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 3 16:49:11 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.6: +11 -2 lines
Diff to previous 1.6 (colored)

Document cv_has_waiters().

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 3 16:39:53 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.5: +27 -3 lines
Diff to previous 1.5 (colored)

- Require that cv_signal/cv_broadcast be called with the interlock held.
- Provide 'async' versions that don't need the interlock.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 2 07:36:09 2007 UTC (16 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Sort SEE ALSO. Fix typo.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 2 03:40:07 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.3: +6 -5 lines
Diff to previous 1.3 (colored)

Add manpage for memory barrier ops. Not enabled in the Makefile yet.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 4 13:16:59 2006 UTC (16 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.2: +38 -27 lines
Diff to previous 1.2 (colored)

Use more markup. Use HTML escapes. Use .Rs/.Re for book citation.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 13 18:28:15 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.1: +6 -8 lines
Diff to previous 1.1 (colored)

Fix errors.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 13 16:22:11 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN

Add manual pages for RW locks, mutexes and condition variables. Not
enabled in the Makefile.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>