[commit: ghc] ghc-7.4: Revert "Refer to Control.Concurrent instead of GHC.Conc" (69e6487)
Paolo Capriotti
p.capriotti at gmail.com
Mon Apr 2 15:16:18 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : ghc-7.4
http://hackage.haskell.org/trac/ghc/changeset/69e6487eb8534166e5e6993d31df517d7beed156
>---------------------------------------------------------------
commit 69e6487eb8534166e5e6993d31df517d7beed156
Author: Paolo Capriotti <p.capriotti at gmail.com>
Date: Mon Apr 2 14:15:48 2012 +0100
Revert "Refer to Control.Concurrent instead of GHC.Conc"
This reverts commit 6a217ed6f10d440902eb166d2e0ab4127eb3f699.
>---------------------------------------------------------------
docs/users_guide/using.xml | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml
index 8ef5bf9..08865e6 100644
--- a/docs/users_guide/using.xml
+++ b/docs/users_guide/using.xml
@@ -2143,7 +2143,7 @@ f "2" = 2
<para>There are two ways to run a program on multiple
processors:
- call <literal>Control.Concurrent.setNumCapabilities</literal> from your
+ call <literal>GHC.Conc.setNumCapabilities</literal> from your
program, or use the RTS <option>-N</option> option.</para>
<variablelist>
@@ -2176,13 +2176,13 @@ f "2" = 2
<para>The current value of the <option>-N</option> option
is available to the Haskell program
- via <literal>Control.Concurrent.getNumCapabilities</literal>, and
+ via <literal>GHC.Conc.getNumCapabilities</literal>, and
it may be changed while the program is running by
- calling <literal>Control.Concurrent.setNumCapabilities</literal>.
+ calling <literal>GHC.Conc.setNumCapabilities</literal>.
Note: in the current implementation,
the <option>-N</option> value may only
be <emphasis>increased</emphasis>, not decreased, by
- calling <literal>Control.Concurrent.setNumCapabilities</literal>.</para>
+ calling <literal>GHC.Conc.setNumCapabilities</literal>.</para>
</listitem>
</varlistentry>
</variablelist>
@@ -2218,7 +2218,7 @@ f "2" = 2
<para>
This option is probably only of use for concurrent
programs that explicitly schedule threads onto CPUs
- with <literal>Control.Concurrent.forkOn</literal>.
+ with <literal>GHC.Conc.forkOnIO</literal>.
</para>
</listitem>
</varlistentry>
More information about the Cvs-ghc
mailing list