From 5f497c4a927cc5ee6ab2166bfcbc2b6b44172135 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 22 Jun 1995 17:29:12 +0000 Subject: (thread_function): Move thread_function to be non-local, of course, because it needs to live even after create_disk_pager returns. --- ufs/pager.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'ufs') diff --git a/ufs/pager.c b/ufs/pager.c index 938e1127..355af46c 100644 --- a/ufs/pager.c +++ b/ufs/pager.c @@ -375,22 +375,21 @@ pager_dropweak (struct user_pager_info *upi __attribute__ ((unused))) +static 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); +} /* Create a the DISK pager, initializing DISKPAGER, and DISKPAGERPORT */ 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)); -- cgit v1.2.3