From 150ac5e907ec5096660f90caaa5f076da181d81b Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 25 Nov 2010 13:57:29 +0000 Subject: Keep a maximum of 6 spare worker threads per Capability (#4262) --- rts/Capability.h | 1 + 1 file changed, 1 insertion(+) (limited to 'rts/Capability.h') diff --git a/rts/Capability.h b/rts/Capability.h index a32062a27f..a15ce15d88 100644 --- a/rts/Capability.h +++ b/rts/Capability.h @@ -79,6 +79,7 @@ struct Capability_ { #if defined(THREADED_RTS) // Worker Tasks waiting in the wings. Singly-linked. Task *spare_workers; + nat n_spare_workers; // count of above // This lock protects running_task, returning_tasks_{hd,tl}, wakeup_queue. Mutex lock; -- cgit v1.2.1