diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-11-25 00:05:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-11-27 23:00:09 +0100 |
commit | 1d767442294df64b9746f02cd6fcf320da257b1f (patch) | |
tree | 545058ea2a191721820a41b5c8b6101bc1f65064 /libnetfs/fsys-set-options.c | |
parent | 1de0643c9218db536f5b2e294bbfa653c77438e4 (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 'libnetfs/fsys-set-options.c')
-rw-r--r-- | libnetfs/fsys-set-options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libnetfs/fsys-set-options.c b/libnetfs/fsys-set-options.c index 9dd8b007..d7dc743b 100644 --- a/libnetfs/fsys-set-options.c +++ b/libnetfs/fsys-set-options.c @@ -70,20 +70,20 @@ netfs_S_fsys_set_options (fsys_t fsys, #if NOT_YET if (do_children) { - rwlock_writer_lock (&netfs_fsys_lock); + pthread_rwlock_wrlock (&netfs_fsys_lock); err = netfs_node_iterate (helper); - rwlock_writer_unlock (&netfs_fsys_lock); + pthread_rwlock_unlock (&netfs_fsys_lock); } #endif if (!err) { #if NOT_YET - rwlock_writer_lock (&netfs_fsys_lock); + pthread_rwlock_wrlock (&netfs_fsys_lock); #endif err = netfs_set_options (data, data_len); #if NOT_YET - rwlock_writer_unlock (&netfs_fsys_lock); + pthread_rwlock_unlock (&netfs_fsys_lock); #endif } |