Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taskPool.workerIndex is wrong for single tread task pool #10354

Open
dlangBugzillaToGithub opened this issue Oct 24, 2018 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

ilyayaroshenko reported this on 2018-10-24T07:01:54Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=19330

CC List

Description

import std.parallelism, std.stdio, std.range;

void main()
{
    defaultPoolThreads = 1;
	foreach(i; taskPool.parallel(8.iota))
		taskPool.workerIndex.writeln;
}

=====
current output:
0
0
0
0
0
0
0
0
=====
expected output according to the documentation:
1
1
1
1
1
1
1
1
@dlangBugzillaToGithub
Copy link
Author

bugzilla (@WalterBright) commented on 2020-01-03T15:33:01Z

Can't see why this should be a blocker, nor why it is trivial.

@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants