From 9596c4ee221e90fa4d35255e290f3e6988756bd7 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 20 Aug 1997 18:19:39 +0000 Subject: Wed Aug 20 13:56:40 1997 Thomas Bushnell, n/BSG * manage-multithread.c (ports_manage_port_operations_multithread): Drop parms `wire_cthreads' and `wire_threads'. Add parm `hook'. (thread_function): Call HOOK instead of cthread_wire and/or thread_wire. * ports.h (ports_manage_port_operations_multithread): Adjust declaration. --- libports/manage-multithread.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libports/manage-multithread.c') diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 2f3f344f..fb8f03f6 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -29,8 +29,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, ports_demuxer_type demuxer, int thread_timeout, int global_timeout, - int wire_cthreads, - mach_port_t wire_threads) + void (*hook)()) { volatile int nreqthreads; volatile int totalthreads; @@ -123,10 +122,8 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, int timeout; error_t err; - if (wire_threads) - thread_wire (wire_threads, hurd_thread_self (), 1); - if (wire_cthreads) - cthread_wire (); + if (hook) + (*hook) (); if (master) timeout = global_timeout; -- cgit v1.2.3