Skip to content

Commit 0d63da3

Browse files
authored
Merge pull request #758 from perl6/molecules-patch-2
This is better (note on $*SCHEDULER and threads)
2 parents 5124de1 + d0d1cf0 commit 0d63da3

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

doc/Language/variables.pod6

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,14 +1175,19 @@ X<|$*SPEC>X<|$*TMPDIR>X<|$*THREAD>X<|$*SCHEDULER>
11751175
$*THREAD | A L<Thread> object representing the currently executing thread.
11761176
------------------+--------------------------------------------
11771177
$*SCHEDULER | A L<ThreadPoolScheduler> object representing the current default
1178-
| scheduler.
1179-
| Note on usage: For the current Rakudo, by default this imposes a
1180-
| maximum of 16 threads on the methods C<.hyper> and C<.race>. To change
1181-
| the maximum number of threads, either set the environment variable
1182-
| RAKUDO_MAX_THREADS before running perl6 or create a scoped copy
1183-
| with the default changed before using C<.hyper> or C<.race>:
1184-
| my $*SCHEDULER = ThreadPoolScheduler.new( max_threads => 64 );
1185-
| This behavior is not tested in the spec tests and is subject to change.
1178+
| scheduler. (see note below)
11861179
------------------+--------------------------------------------
11871180
=end table
1181+
1182+
Note on usage of $*SCHEDULER:
1183+
1184+
For the current Rakudo, by default this imposes a maximum of 16 threads on the methods
1185+
C<.hyper> and C<.race>. To change the maximum number of threads, either set the
1186+
environment variable RAKUDO_MAX_THREADS before running perl6 or create a scoped copy
1187+
with the default changed before using C<.hyper> or C<.race>:
1188+
1189+
my $*SCHEDULER = ThreadPoolScheduler.new( max_threads => 64 );
1190+
1191+
This behavior is not tested in the spec tests and is subject to change.
1192+
11881193
=end pod

0 commit comments

Comments
 (0)