summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/pthread_private.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-2/+2
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* Add a simple work-around for deadlocking on recursivebrad2004-02-011-1/+4
| | | | | | | | readlocks on a rwlock while there are writers waiting. From: FreeBSD's libc_r ok marc@
* threaded version of closefrommarc2004-01-151-1/+2
| | | | | pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
* there is no pause() wrapper (thread_sys_pause) so remove the prototypebrad2003-12-311-2/+1
|
* missing proto for kqueue(); marc@ okmickey2003-11-101-1/+2
|
* Go back to using ITIMER_PROF for the non-profiled libpthread and usemillert2003-08-011-2/+2
| | | | | | | ITIMER_VIRTUAL for the profiled version. Fixes problems when programs linked with libpthread try to use ITIMER_VIRTUAL (and have no way of knowing that this will cause conflicts with the threads lib). marc@ OK
* remove variable never readmarc2003-07-081-2/+1
|
* Add support for blocking thread switches during dlopen and othermarc2003-05-131-1/+2
| | | | | | | | non-thread-safe dl functions. Only enabled for ELF architectures at this time as needed dlxxx support has not yet been added to the a.out run time loader. 'doesn't break xmms at least' tedu@. Tested by others with no comment
* fix bug that would leave an FD locked if dup'd, then closed.marc2003-02-141-1/+2
| | | | Also, for safety lock the _thread_fd_table when removing entries.
* Part 1 of thread fd handling fixes. In the new scheme fd_table_entriesmarc2003-02-041-13/+16
| | | | | | | | | | | | | | | | | for dup-ed fds are shared to ensure proper flag handling. A refcnt was added to control when entries should be freed. Specific changes: close: don't free entry unless refcnt is zero dup: rewrite to use new function _thread_fd_table_dup dup2: rewrite to use new function _thread_fd_table_dup fcntl: use _thread_fd_table_dup uthread_fd: initialize thread fd table, searching for dup-ed fds. Add function to share _thread_fd_table entries when an fd is dup-ed. uthread_init: make it readable. Call fd init functions. All current regression tests plus the mysql torture test pass. The new stdfiles regression test fails (I/O redirection problem). Part 2 is intended to fix that problem
* Create a siginfo_t for thread-to-thread kill.marc2003-01-311-11/+19
| | | | | Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
* pthreads signal handling improvements. With these changes allmarc2003-01-271-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the thread regressions tests pass on i386, sparc, sparc64 (save the siginfo test on sparc64 due to a kernel issue) and alpha. The tests should also pass on ppc. In addition, it fixes the problems with the "mysql torture test" provided by one of our users. The python port also appears to work correctly with these changes. Summary of changes: * check_pending removed from thread structure, no longer used. * unused elements of sigstatus structure removed. The sigstatus structure is now used to keep track of siginfo data instead of defining a local array in uthread_sig.c. * _thread_kern_sched_sig removed * _thread_sig_process goes away -- can't have a lock active when signal handlers are called. Functions now call _thread_sig_handle directly. * _thread_clear_pending now used lib wide to clear pending flags. It was named _clean_pending_flag and only used in uthread_sig.c. The function clears both per thread signals, and per process signals. * _thread_sig_handle now returns a value. * unused debugging macros removed from the thread kernel * dispatch pending signals after switching to a thread providing that signal handling hasn't been deferred by the thread. * process thread switchhooks before dispatching pending sigs * check for thread cancellation before dispatching pending sigs * re-wrote pthread-kill to do the correct thing. It now does minimal thread-kill-specific processing and then calls the existing code in uthread_sig to process the generated signal. * shut the compiler up when compiling uthread_mutex.c * no more "signal_lock". It does more harm than good. * keep track of "per-process" signals. * don't bother saving siginfo_t data for the scheduling signal. * per posix: SIGSTOP cleared when SIGCONT received and vice versa. * add _dispatch_signal to properly dispatch a signal to a thread. It sets the appropriate signal mask, something that was missing in the previous implementation. This fixes several bugs. The previous method held a lock. If the signal handler longjmp-ed the lock was never cleared and no more signals were processed.
* save and restore fp state when switching threads. This, withmarc2003-01-241-2/+2
| | | | | | | | | | | an arch/i386 patch previously commited and arch/sparc64 patches from jason@ make the preemption_float test pass on those two architectures. Do not run signal handlers for a thread until the thread has been made current, ensuring the proper context. Solves several (if not all) of the '_pq_insert_tail: Already in priority queue' problems.
* add a debugging function not normally calledmarc2002-12-111-1/+2
|
* remove unused data member from pthread_cond.marc2002-12-081-2/+1
|
* get rid of compiler warningsmarc2002-11-121-2/+2
|
* removes duplicate functions and factor out common code so the needed (butmarc2002-10-301-12/+2
| | | | | | | | missing) _thread_fd_unlock_owned function can be added with minimal pain. The incorrect special handling of the stdio fds was also removed. Tested with the libc_r regression tests and the mysql regression tests. No complaints from any developers
* signal handling changes. This corrects several signalmarc2002-10-301-4/+6
| | | | | | | handling errors in the threads library. Most of the libc_r regression tests are now ok. thread specific kill semantics are still not correct. No negative comments after posting to tech@ a week or so ago. siginfo test fails on sparc64 due to sparc64 oddity.
* account for the process signal mask when dealing with signals; testedfgsch2002-02-211-1/+12
| | | | a while ago by marc@ and brad@
* Instead of ifdef around ENOTSUP, move it to pthread_private.h and makefgsch2002-01-191-1/+6
| | | | it EOPNOTSUPP.
* More changes from FreeBSD, including:fgsch2001-12-311-14/+15
| | | | | | | | | o Only poll file descriptors when needed. o Change the way timing is achieved, counting scheduling ticks instead of calculating the elapsed time via gettimeofday(). o Prevent an overflow when polling. o Use curthread instead of _thread_run. o Remove extra spaces; indent.
* More sync.fgsch2001-12-191-19/+53
|
* More sync with freebsd code; join related code this time.fgsch2001-12-111-6/+16
|
* Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.fgsch2001-12-081-14/+11
| | | | make includes is needed in case you want to play.
* Use _waitq_remove() and _waitq_insert() always; from FreeBSD.fgsch2001-09-041-19/+3
|
* put changes back, this time ALL the files.fgsch2001-09-041-11/+9
|
* Back out fgsch@'s tree breaking commits.todd2001-08-301-9/+11
| | | | Test next time, ok?
* fix some const warnings.fgsch2001-08-301-11/+9
| | | | more sync with freebsd.
* More sync with FreeBSD.fgsch2001-08-291-30/+182
|
* More syncing with FreeBSD, preparing for a commit.fgsch2001-08-261-10/+94
|
* Start syncing with FreeBSD:fgsch2001-08-211-4/+8
| | | | | | | | | | o Implement _get_curthread() and _set_curthread(). Use it where possible. o Add missing _thread_[enter|leave]_cancellation_point(). o Add a couple of not yet used vars to pthread_private.h. o Remove return's from void functions. This is by no means complete, but instead of doing a big commit, i'll split it in small ones, minimizing diffs.
* * kevent(2) support; from FreeBSD.fgsch2001-08-151-2/+8
| | | | * change _thread_kern_set_timeout() parm to const.
* use __x__ formats for __attribute__ arguments; guenther@gac.eduderaadt2000-12-061-3/+3
|
* switch to _machdep_switch() instead of setjmp/longjmp. For some reason this fixes sparc threads.d2000-10-041-10/+14
|
* volatile; thread_private.h; locking defines moved out; kill(), getpid()d2000-01-061-31/+33
|
* sync with FreeBSDd1999-11-251-139/+209
|
* TAILQ_FOREACH now is in queue.hespie1999-09-081-7/+1
|
* Remove pthread_atfork(). It was only part of draft 10 for a little while and was removed before stddization.d1999-06-151-6/+1
|
* sync with freebsdd1999-06-091-4/+5
|
* sync with FreeBSDd1999-05-261-23/+210
|
* update prototypes now that socket functions take socklen_t as a length parametermillert1999-02-161-10/+10
|
* move private spinlock protos outd1999-01-181-1/+3
|
* sync with previous changesd1999-01-181-9/+32
|
* fix protod1999-01-101-2/+3
|
* slight structure rearrange for gdb thread supportd1999-01-081-3/+4
|
* add fchflags and fpathconf as well.d1999-01-081-2/+3
|
* add poll(2). This might help get X threaded.d1999-01-081-2/+7
|
* preserve FreeBSD identsd1998-12-231-0/+2
|
* resource accountingd1998-12-211-0/+6
|
* sync with freebsdd1998-11-201-3/+4
|