summaryrefslogtreecommitdiff
path: root/term/hurdio.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-25 00:05:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-11-27 23:00:09 +0100
commit1d767442294df64b9746f02cd6fcf320da257b1f (patch)
tree545058ea2a191721820a41b5c8b6101bc1f65064 /term/hurdio.c
parent1de0643c9218db536f5b2e294bbfa653c77438e4 (diff)
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.
Diffstat (limited to 'term/hurdio.c')
-rw-r--r--term/hurdio.c4
1 files changed, 2 insertions, 2 deletions
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;