diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-21 17:27:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-21 17:27:03 +0000 |
commit | 0a05b968659e214011eb69e7ff262cde98d84b5d (patch) | |
tree | 8f9a167ceb0d583bf658779ff6082ddd1b0103b3 /ufs | |
parent | 08518ce71e29f27ff5d1dc4d0de1ba5438c44931 (diff) |
(create_disk_pager): Fork off service thread for pager ports.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/pager.c | 13 |
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; |