OpenBSD CVS

CVS log for src/lib/librthread/Attic/rthread_mutex.c


[BACK] Up to [local] / src / lib / librthread

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.6, Tue Sep 5 02:40:54 2017 UTC (6 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED

Move mutex, condvar, and thread-specific data routes, pthread_once, and
pthread_exit from libpthread to libc, along with low-level bits to
support them.  Major bump to both libc and libpthread.

Requested by libressl team.  Ports testing by naddy@
ok kettenis@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 29 16:42:10 2017 UTC (6 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +0 -2 lines
Diff to previous 1.4 (colored)

not all the world is an i386.  Back out breakage.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 29 08:36:23 2017 UTC (6 years, 10 months ago) by pirofti
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Use memory barriers to prevent pointer use before initialization.

This work was sparked by the topic posted on hn by wuch. I am still not
sure that this fixes the defect he claims to have observed because I was
not able to create a proper regress test for it to manifest.

To that end, a proof of concept is more than welcomed!
Thank you for the report!

Discussed with and OK kettenis@, tedu@.

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 29 14:47:54 2017 UTC (7 years ago) by mpi
Branch: MAIN
Changes since 1.2: +10 -3 lines
Diff to previous 1.2 (colored)

SPINLOCK_SPIN_HOOK is no more, define our own set of macros.

Prodded by kettenis@ and tedu@

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 28 09:45:25 2017 UTC (7 years ago) by mpi
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

Use membar_enter_after_atomic() and membar_exit_before_atomic().

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 27 14:20:39 2017 UTC (7 years ago) by mpi
Branch: MAIN

New mutex and condvar implementations based on futex(2).

Not enabled yet, it needs some SPINLOCK_SPIN_HOOK love and
some bumps.

Tested by many including sthen@ in a bulk.

ok visa@, sthen@, kettenis@, tedu@

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.