freebsd-skq/lib/libthr/thread
Mike Makonnen 98a11db62d When suspending a thread if the timeout was very short or
the system call got interrupted and the absolute timeout is
converted to a relative timeout, it may happen that we get a
negative number. In such a case, simply set the timeout to
zero so that if the event that the thread wants to wait for has
happened it can still return successfully, but if it hasn't
happened then the thread doesn't suspend indefinitely. This should
fix certain applications (including mozilla) that seem to hang
indefinitely sometimes.

Noticed and debugged by: Morten Johansen <root@morten-johansen.net>
2004-01-29 09:44:36 +00:00
..
Makefile.inc
thr_attr.c
thr_autoinit.c
thr_cancel.c
thr_clean.c
thr_concurrency.c
thr_cond.c Fix the wrapper function around signals so that a signal handling 2003-12-09 11:12:11 +00:00
thr_condattr_destroy.c
thr_condattr_init.c
thr_create.c Preparations to make libthr work in multi-threaded fork()ing applications. 2003-12-26 08:16:17 +00:00
thr_detach.c
thr_equal.c
thr_exit.c Implement reference counting of read-write locks. This uses 2004-01-19 14:51:45 +00:00
thr_find_thread.c
thr_gc.c
thr_getprio.c
thr_getschedparam.c
thr_info.c
thr_init.c Preparations to make libthr work in multi-threaded fork()ing applications. 2003-12-26 08:16:17 +00:00
thr_join.c
thr_kern.c When suspending a thread if the timeout was very short or 2004-01-29 09:44:36 +00:00
thr_main_np.c
thr_mattr_init.c
thr_mattr_kind_np.c
thr_multi_np.c
thr_mutex_prioceiling.c
thr_mutex_protocol.c
thr_mutex.c Refactor _pthread_mutex_init 2004-01-19 15:00:57 +00:00
thr_mutexattr_destroy.c
thr_once.c
thr_printf.c
thr_private.h o Implement the pthread_spin_* functions in libthr. 2004-01-22 15:31:56 +00:00
thr_resume_np.c Doh! Lock the thread passed in by the caller, not the current thread. 2003-12-12 09:51:39 +00:00
thr_rwlock.c Implement reference counting of read-write locks. This uses 2004-01-19 14:51:45 +00:00
thr_rwlockattr.c
thr_self.c
thr_sem.c
thr_seterrno.c
thr_setprio.c
thr_setschedparam.c Comment out most of pthread_setschedparam. Pthread priorities didn't 2003-12-15 12:31:46 +00:00
thr_sig.c Fix the wrapper function around signals so that a signal handling 2003-12-09 11:12:11 +00:00
thr_spec.c
thr_spinlock.c o Implement the pthread_spin_* functions in libthr. 2004-01-22 15:31:56 +00:00
thr_stack.c
thr_subr.c Ugghh, cvs add the functions necessary to lock the global signal action 2003-12-09 11:06:55 +00:00
thr_suspend_np.c Return ENOTSUP instead of -1. 2004-01-15 16:09:58 +00:00
thr_syscalls.c
thr_yield.c