summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_join.c
Commit message (Collapse)AuthorAgeFilesLines
* Add the missing {} that caused the function to return ESRCH if itjb1998-06-251-1/+2
| | | | | had to wait for the thread to exit and if the caller didn't want the thread exit status.
* Change signal model to match POSIX (i.e. one set of signal handlersjb1998-04-291-49/+23
| | | | | | | | | | | | | | | | | | | | for the process, not a separate set for each thread). By default, the process now only has signal handlers installed for SIGVTALRM, SIGINFO and SIGCHLD. The thread kernel signal handler is installed for other signals on demand. This means that SIG_IGN and SIG_DFL processing is now left to the kernel, not the thread kernel. Change the signal dispatch to no longer use a signal thread, and call the signal handler using the stack of the thread that has the signal pending. Change the atomic lock method to use test-and-set asm code with a yield if blocked. This introduces separate locks for each type of object instead of blocking signals to prevent a context switch. It was this blocking of signals that caused the performance degradation the people have noted. This is a *big* change!
* Add a magic field to the pthread structure to help recognize validjb1998-04-031-0/+10
| | | | | | | | | | | | | | threads from invalid ones. The pthread structure is opaque to the user so this change does not cause any incompatibilities. Hopefully this change will help code that was written for draft 4 fail gracefully if the programmer ignores the compiler warning about the change in the level of indirection for the argument passed to pthread_detach(). I got burnt, so I fixed then (expletive deleted) thing. These functions comply with the revised standard. That should shut Terry up!
* Modify the return values to comply with POSIX. Previously thesealex1997-11-251-6/+3
| | | | | | functions would return -1 and set errno to indicate the specific error. POSIX requires that the functions return the error code as the return value of the function instead.
* Submitted by: John Birrelljulian1997-02-051-3/+29
| | | | uthreads update from the author.
* Reviewed by: julianjulian1996-01-221-0/+90
Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete
OpenPOWER on IntegriCloud