Page MenuHomeFreeBSD

Add pthread_tryjoin_np(3) as provided by glibc
ClosedPublic

Authored by kib on Sun, Jan 18, 12:56 PM.
Tags
None
Referenced Files
F143604075: D54766.diff
Sat, Jan 31, 1:15 AM
F143548619: D54766.id169999.diff
Fri, Jan 30, 9:40 PM
F143451170: D54766.id169999.diff
Fri, Jan 30, 3:05 PM
Unknown Object (File)
Fri, Jan 30, 1:31 AM
Unknown Object (File)
Tue, Jan 27, 10:20 PM
Unknown Object (File)
Sun, Jan 25, 11:21 AM
Unknown Object (File)
Sun, Jan 25, 11:21 AM
Unknown Object (File)
Sun, Jan 25, 11:21 AM
Subscribers

Details

Summary
libthr/thread/thr_join.c: deduplicate backout_join() helper


libthr: add pthread_tryjoin_np()

Similar to the same glibc function.


Document pthread_tryjoin_np(3)


lib/libthr: add pthread_tryjoin(3) test

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Sun, Jan 18, 12:56 PM

Convert test to the proper atf, instead of using err()

After a second thought, the pthread_tryjoin_np(3) function must be non-cancelling.

lib/libthr/thread/thr_join.c
103

Why not just lock pthread in the caller? There is only one caller that passes thr_locked=false.

share/man/man3/pthread_join.3
112
113
114
kib marked 4 inline comments as done.

Handle review' comments.

This revision is now accepted and ready to land.Mon, Jan 19, 4:48 PM