summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-21 17:27:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-21 17:27:03 +0000
commitbf639faa9ba2971fd2e9968ecac95e7d57dd3644 (patch)
treeb53c42b58dae81a0c9ecc79076ee7f33a730080a
parentde71dff2d5609d358052faf4f979369c9af952dd (diff)
(create_disk_pager): Fork off service thread for pager ports.
-rw-r--r--ufs/pager.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ufs/pager.c b/ufs/pager.c
index cdfecf95..d972eb0f 100644
--- a/ufs/pager.c
+++ b/ufs/pager.c
@@ -382,8 +382,21 @@ pager_clear_user_data (struct user_pager_info *upi)
void
create_disk_pager ()
{
+ void
+ thread_function (any_t foo __attribute__ ((unused)))
+ {
+ for (;;)
+ ports_manage_port_operations_multithread (pager_bucket,
+ pager_demuxer,
+ 1000 * 60 * 2,
+ 1000 * 60 * 10,
+ 1, MACH_PORT_NULL);
+ }
+
pager_bucket = ports_create_bucket ();
+ cthread_detach (cthread_fork ((cthread_fn_t) thread_function, (any_t) 0));
+
diskpager = malloc (sizeof (struct user_pager_info));
diskpager->type = DISK;
diskpager->np = 0;