diff options
| author | John Birrell <jb@FreeBSD.org> | 1999-06-20 08:28:48 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1999-06-20 08:28:48 +0000 |
| commit | 02292f131acd0fc6c16b950f1e6b05e75de2cdcb (patch) | |
| tree | 0ff88e4b640389e399994c81f9addd13093029cb /lib/libpthread/thread/thr_join.c | |
| parent | c2077034654a87e5a0517430c4d0c7d10721e484 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_join.c')
| -rw-r--r-- | lib/libpthread/thread/thr_join.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_join.c b/lib/libpthread/thread/thr_join.c index 2043b76f5d24..f36d7f7bb008 100644 --- a/lib/libpthread/thread/thr_join.c +++ b/lib/libpthread/thread/thr_join.c @@ -29,6 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $Id$ */ #include <errno.h> #ifdef _THREAD_SAFE @@ -71,7 +72,7 @@ pthread_join(pthread_t pthread, void **thread_return) /* Check if the thread is not dead: */ else if (pthread->state != PS_DEAD) { /* Add the running thread to the join queue: */ - _thread_queue_enq(&(pthread->join_queue), _thread_run); + TAILQ_INSERT_TAIL(&(pthread->join_queue), _thread_run, qe); /* Schedule the next thread: */ _thread_kern_sched_state(PS_JOIN, __FILE__, __LINE__); |
