diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:01:37 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:01:37 +0000 |
commit | a16d10de4d8447020f6c883362a084d792ce5f8c (patch) | |
tree | 5c5b9f2878a717a862ee04057ada1c0ecd32daf3 | |
parent | 74a2473c3fe2ff3736bf12fe67b6d09f0445d6a6 (diff) |
Formerly lock-completed.c.~7~
-rw-r--r-- | libpager/lock-completed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpager/lock-completed.c b/libpager/lock-completed.c index 3cf479fd..bb8505b9 100644 --- a/libpager/lock-completed.c +++ b/libpager/lock-completed.c @@ -31,7 +31,6 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object, { struct pager *p; struct lock_request *lr; - int wakeup; if (!(p = ports_check_port_type (object, pager_port_type))) { @@ -50,12 +49,13 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object, mutex_lock (&p->interlock); _pager_wait_for_seqno (p, seqno); - wakeup = 0; for (lr = p->lock_requests; lr; lr = lr->next) if (lr->start == offset && lr->end == offset + length && !--lr->locks_pending && !lr->pending_writes) - wakeup = 1; - condition_broadcast (&p->wakeup); + break; + + if (lr) + condition_broadcast (&p->wakeup); _pager_release_seqno (p); mutex_unlock (&p->interlock); |