diff options
Diffstat (limited to 'libpager/object-terminate.c')
-rw-r--r-- | libpager/object-terminate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpager/object-terminate.c b/libpager/object-terminate.c index dc53541c..896e2c20 100644 --- a/libpager/object-terminate.c +++ b/libpager/object-terminate.c @@ -33,7 +33,7 @@ _pager_seqnos_memory_object_terminate (mach_port_t object, if (!p) return EOPNOTSUPP; - mutex_lock (&p->interlock); + pthread_mutex_lock (&p->interlock); _pager_wait_for_seqno (p, seqno); if (control != p->memobjcntl) @@ -50,7 +50,7 @@ _pager_seqnos_memory_object_terminate (mach_port_t object, while (p->noterm) { p->termwaiting = 1; - condition_wait (&p->wakeup, &p->interlock); + pthread_cond_wait (&p->wakeup, &p->interlock); } /* Destry the ports we received; mark that in P so that it doesn't bother @@ -78,7 +78,7 @@ _pager_seqnos_memory_object_terminate (mach_port_t object, out: _pager_release_seqno (p, seqno); - mutex_unlock (&p->interlock); + pthread_mutex_unlock (&p->interlock); ports_port_deref (p); return 0; @@ -108,7 +108,7 @@ _pager_free_structure (struct pager *p) } if (wakeup) - condition_broadcast (&p->wakeup); + pthread_cond_broadcast (&p->wakeup); if (p->memobjcntl != MACH_PORT_NULL) { |