From bf639faa9ba2971fd2e9968ecac95e7d57dd3644 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 21 Jun 1995 17:27:03 +0000 Subject: (create_disk_pager): Fork off service thread for pager ports. --- ufs/pager.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ufs') 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; -- cgit v1.2.3