#18007 closed bug (invalid)

Add pthread_timedjoin_np pthread function?

Reported by: kallisti5 Owned by: nobody
Priority: low Milestone: Unscheduled
Component: System Version: R1/beta3
Keywords: pthread Cc:
Blocked By: Blocking:
Platform: All

Description

Should we add a compatibility pthread_timedjoin_np function?

I see pthread_timedjoin_np on Linux and FreeBSD man pages. I don't see wide usage, however it's not trivial to implement in ports.

Change History (2)

comment:1 by korli, 19 months ago

From https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap02.html

Since it is possible to implement such a facility entirely from existing pthread interfaces, and with roughly equal efficiency and complexity to an implementation which would be provided directly by a pthreads implementation, it was the consensus of the working group members that any pthread_timedjoin() facility would be unnecessary, and should not be provided.

comment:2 by kallisti5, 19 months ago

Resolution: invalid
Status: newclosed

That's a fair assessment. I actually up-streamed a fix to liblxi (which is where I originally ran into this) pretty much rolling its own.

https://github.com/lxi-tools/liblxi/pull/31

pthread_timedjoin_np is handy, but yeah... we shouldn't be encouraging people to keep using linux-centric functions and try to get folks using standard posix functions. That'll help the BSD's and us.

Note: See TracTickets for help on using tickets.