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. --- libnetfs/shutdown.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libnetfs/shutdown.c') diff --git a/libnetfs/shutdown.c b/libnetfs/shutdown.c index b3463bfc..94d4b207 100644 --- a/libnetfs/shutdown.c +++ b/libnetfs/shutdown.c @@ -70,7 +70,7 @@ netfs_shutdown (int flags) #endif #ifdef NOTYET - rwlock_writer_lock (&netfs_fsys_lock); + pthread_rwlock_wrlock (&netfs_fsys_lock); #endif /* Permit all current RPC's to finish, and then suspend any new ones. */ @@ -78,7 +78,7 @@ netfs_shutdown (int flags) if (err) { #ifdef NOTYET - rwlock_writer_unlock (&netfs_fsys_lock); + pthread_rwlock_unlock (&netfs_fsys_lock); #endif return err; } @@ -90,7 +90,7 @@ netfs_shutdown (int flags) ports_enable_class (netfs_protid_class); ports_resume_class_rpcs (netfs_protid_class); #ifdef NOTYET - rwlock_writer_unlock (&netfs_fsys_lock); + pthread_rwlock_unlock (&netfs_fsys_lock); #endif return EBUSY; } -- cgit v1.2.3