Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexis King
GHC
Commits
7d7809de
Commit
7d7809de
authored
Jan 03, 2012
by
Simon Marlow
Browse files
Refer to Control.Concurrent instead of GHC.Conc
Modified version of a patch by shelarcy <shelarcy@gmail.com>
parent
f283c391
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/using.xml
View file @
7d7809de
...
...
@@ -2114,7 +2114,7 @@ f "2" = 2
<para>
There are two ways to run a program on multiple
processors:
call
<literal>
GHC.Conc
.setNumCapabilities
</literal>
from your
call
<literal>
Control.Concurrent
.setNumCapabilities
</literal>
from your
program, or use the RTS
<option>
-N
</option>
option.
</para>
<variablelist>
...
...
@@ -2150,13 +2150,13 @@ f "2" = 2
<para>
The current value of the
<option>
-N
</option>
option
is available to the Haskell program
via
<literal>
GHC.Conc
.getNumCapabilities
</literal>
, and
via
<literal>
Control.Concurrent
.getNumCapabilities
</literal>
, and
it may be changed while the program is running by
calling
<literal>
GHC.Conc
.setNumCapabilities
</literal>
.
calling
<literal>
Control.Concurrent
.setNumCapabilities
</literal>
.
Note: in the current implementation,
the
<option>
-N
</option>
value may only
be
<emphasis>
increased
</emphasis>
, not decreased, by
calling
<literal>
GHC.Conc
.setNumCapabilities
</literal>
.
</para>
calling
<literal>
Control.Concurrent
.setNumCapabilities
</literal>
.
</para>
</listitem>
</varlistentry>
</variablelist>
...
...
@@ -2192,7 +2192,7 @@ f "2" = 2
<para>
This option is probably only of use for concurrent
programs that explicitly schedule threads onto CPUs
with
<literal>
GHC.Conc
.forkOn
IO
</literal>
.
with
<literal>
Control.Concurrent
.forkOn
</literal>
.
</para>
</listitem>
</varlistentry>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment