summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-22 17:29:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-22 17:29:12 +0000
commit5f497c4a927cc5ee6ab2166bfcbc2b6b44172135 (patch)
tree8761b3ff6a2dd7c518ce2c9306d8a66f740695f0 /ufs
parent4910e6f77c81e4f95471a7b6bf28796147260235 (diff)
(thread_function): Move thread_function to be non-local, of course,
because it needs to live even after create_disk_pager returns.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/pager.c21
1 files changed, 10 insertions, 11 deletions
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));