Changed ioManagerCapabilitiesChanged to take no arguments.
authorAndreas Voellmy <andreas.voellmy@gmail.com>
Mon, 7 Jan 2013 18:46:58 +0000 (13:46 -0500)
committerJohan Tibell <johan.tibell@gmail.com>
Tue, 12 Feb 2013 05:38:36 +0000 (21:38 -0800)
ioManagerCapabilitiesChanged now queries getNumCapabilities for the current number of enabled capabilities.

rts/Schedule.c

index 7eaaba2..f39ef96 100644 (file)
@@ -2070,9 +2070,7 @@ setNumCapabilities (nat new_n_capabilities USED_IF_THREADS)
     // Notify IO manager that the number of capabilities has changed.
     rts_evalIO(
        &cap,
-       rts_apply(cap, 
-                &base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure,
-                rts_mkInt(cap, enabled_capabilities)),
+       &base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure,
        NULL);
 
     rts_unlock(cap);