I'm looking for the code of the pthread_join, but online I found only the prototype. Could you tell me where I can find it please?
Asked
Active
Viewed 171 times
2
-
1Here is [an example](http://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/pthread_join.c;h=6a87a8b329c3e34a57d65e86d45fa97a5fdb2fe2;hb=master), which is linked from [linux - How is pthread_join implemented? - Stack Overflow](https://stackoverflow.com/questions/2821881/how-is-pthread-join-implemented) – MikeCAT Jul 09 '20 at 16:21
-
1https://github.com/bminor/glibc/blob/master/nptl/pthread_join.c – Jonathon Reinhart Jul 09 '20 at 16:29
-
thank you a lot for your links! – Gennaro Arguzzi Jul 09 '20 at 16:30
-
1[openbsd pthread_join](https://github.com/freebsd/freebsd/blob/master/lib/libthr/thread/thr_join.c#L42) – KamilCuk Jul 09 '20 at 16:51
1 Answers
3
There is not "the code", there are many different implementations that partially build on each other. For example

fcdt
- 2,371
- 5
- 14
- 26