From 1d767442294df64b9746f02cd6fcf320da257b1f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 25 Nov 2012 00:05:21 +0100 Subject: Complete switch from cthreads to pthreads * console/input.c: Switch comment from cthreads to pthreads. * libnetfs/file-get-fs-options.c: Likewise * libnetfs/fsys-get-options.c: Likewise * libnetfs/fsys-set-options.c: Likewise * libnetfs/shutdown.c: Likewise * libpager/lock-object.c: Likewise * nfsd/cache.c: Set back replycachelock as static variable. * term/hurdio.c: Use pthread_hurd_cond_wait_np instead of pthread_cond_wait. --- term/hurdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term') diff --git a/term/hurdio.c b/term/hurdio.c index 368c2322..dfade0e6 100644 --- a/term/hurdio.c +++ b/term/hurdio.c @@ -147,7 +147,7 @@ static void wait_for_dtr (void) { while (!assert_dtr) - pthread_cond_wait (&hurdio_assert_dtr_condition, &global_lock); + pthread_hurd_cond_wait_np (&hurdio_assert_dtr_condition, &global_lock); assert_dtr = 0; if (tty_arg == 0) @@ -262,7 +262,7 @@ hurdio_writer_loop (void *arg) while (writer_thread != MACH_PORT_NULL && (ioport == MACH_PORT_NULL || !qsize (outputq) || output_stopped)) - pthread_cond_wait (&hurdio_writer_condition, &global_lock); + pthread_hurd_cond_wait_np (&hurdio_writer_condition, &global_lock); if (writer_thread == MACH_PORT_NULL) /* A sign to die. */ return 0; -- cgit v1.2.3