diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 17:29:12 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-22 17:29:12 +0000 |
| commit | 7adec76824d5f9dfc7e46a114b03521aa877d505 (patch) | |
| tree | 2a481a835525c477063ebbb9c212306c65226299 /ufs | |
| parent | 2d9280333f1bf42d6a49f7a2c9772b76dee62700 (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.c | 21 |
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)); |
