summaryrefslogtreecommitdiff
path: root/libpager/seqnos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpager/seqnos.c')
-rw-r--r--libpager/seqnos.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/libpager/seqnos.c b/libpager/seqnos.c
index 94cce93b..7afe0fbe 100644
--- a/libpager/seqnos.c
+++ b/libpager/seqnos.c
@@ -1,5 +1,5 @@
/* Sequence number synchronization routines for pager library
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 2011 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -47,3 +47,23 @@ _pager_release_seqno (struct pager *p,
condition_broadcast (&p->wakeup);
}
}
+
+
+/* Just update the seqno. */
+void
+_pager_stubs_update_seqno (mach_port_t object,
+ int seqno)
+{
+ struct pager *p;
+
+ p = ports_lookup_port (0, object, _pager_class);
+ if (p)
+ {
+ mutex_lock (&p->interlock);
+ _pager_wait_for_seqno (p, seqno);
+ _pager_release_seqno (p, seqno);
+ mutex_unlock (&p->interlock);
+
+ ports_port_deref (p);
+ }
+}