summaryrefslogtreecommitdiff
path: root/libpager/lock-object.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 /libpager/lock-object.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 'libpager/lock-object.c')
-rw-r--r--libpager/lock-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpager/lock-object.c b/libpager/lock-object.c
index 93c89f07..c022d0c4 100644
--- a/libpager/lock-object.c
+++ b/libpager/lock-object.c
@@ -65,11 +65,11 @@ _pager_lock_object (struct pager *p,
}
}
- mutex_unlock (&p->interlock);
+ pthread_mutex_unlock (&p->interlock);
memory_object_lock_request (p->memobjcntl, offset, size, should_return,
should_flush, lock_value,
sync ? p->port.port_right : MACH_PORT_NULL);
- mutex_lock (&p->interlock);
+ pthread_mutex_lock (&p->interlock);
if (sync)
{