summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_detach.c
Commit message (Collapse)AuthorAgeFilesLines
* Change signal model to match POSIX (i.e. one set of signal handlersJohn Birrell1998-04-291-10/+3
| | | | | | | | | | | | | | | | | | | | | | | 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! Notes: svn path=/head/; revision=35509
* Add a magic field to the pthread structure to help recognize validJohn Birrell1998-04-031-1/+1
| | | | | | | | | | | | | | | | | 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! Notes: svn path=/head/; revision=35008
* Changed pthread_detach to conform to POSIX, i.e. the single argumentAlexander Langer1997-12-251-10/+3
| | | | | | | | | | | | provided is of type pthread_t instead of pthread_t *. PR: 4320 Return EINVAL instead of ESRCH if attempting to detach an already detached thread. Notes: svn path=/head/; revision=31985
* Modify the return values to comply with POSIX. Previously theseAlexander Langer1997-11-251-4/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=31402
* Submitted by: John BirrellJulian Elischer1997-02-051-3/+3
| | | | | | | uthreads update from the author. Notes: svn path=/head/; revision=22315
* Reviewed by: julianJulian Elischer1996-01-221-0/+83
Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete Notes: svn path=/head/; revision=13546