summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_private.h
Commit message (Collapse)AuthorAgeFilesLines
* Add compile time thread lock debug support.jb1998-06-091-6/+21
| | | | | Add a thread specific flag to trap the case where pthread_exit() is called from a destructor in violation of the Posix standard.
* Re-design the thread specific key structure.jb1998-06-061-3/+2
|
* Change signal model to match POSIX (i.e. one set of signal handlersjb1998-04-291-32/+51
| | | | | | | | | | | | | | | | | | | | 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!
* Change the FILE locking to be by FILE, not by the underlying fd asjb1998-04-111-2/+9
| | | | | | | | | | | | | it was. Add a FILE_WAIT state and queue threads waiting for a FILE lock. Start using the sys/queue.h macros instead of the way that MIT pthreads did it. Add a thread name to the private thread structure and a non-POSIX function to set this. This helps (me at least) when sending a SIGINFO to a threaded process to get a /tmp/uthread.dump to see what the <expletive deleted> threads are doing this time. It is nice to be able to recognise (yes, I spell that with an 's' too) which threads are which.
* Rename static initializer defines for opaque structures so that thejb1998-04-041-2/+2
| | | | POSIX specified names can be declared in pthread.h.
* Add a magic field to the pthread structure to help recognize validjb1998-04-031-1/+8
| | | | | | | | | | | | | | 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!
* Add sched_yield() witch is the draft 10 equivalent of pthread_yield()jb1998-03-081-22/+8
| | | | | from draft 4. Move some of the schedule definitions to sched.h which is a POSIX header.
* remove prototype for nanosleep(), it's visible in unistd.h now.peter1997-05-121-1/+0
|
* Submitted by: John Birrelljulian1997-02-051-19/+40
| | | | uthreads update from the author.
* Moved enum pthread_mutextype to pthread.h.hsu1996-11-111-6/+8
| | | | Add pthread_mutexattr_default definition.
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-201-8/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* Reviewed by: julianjulian1996-01-221-0/+629
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