← Back to index
|
Original Bugzilla link
Bug 19330 – taskPool.workerIndex is wrong for single tread task pool
Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-24T07:01:54Z
Last change time
2024-12-01T16:34:21Z
Assigned to
No Owner
Creator
Илья Ярошенко
Moved to GitHub: phobos#10354 →
Comments
Comment #0
by ilyayaroshenko — 2018-10-24T07:01:54Z
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
Comment #1
by bugzilla — 2020-01-03T15:33:01Z
Can't see why this should be a blocker, nor why it is trivial.
Comment #2
by robert.schadek — 2024-12-01T16:34:21Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10354
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB