[Issue 13727] std.stdio.File not thread-safe

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 13 06:37:51 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13727

--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Vladimir Panteleev from comment #3)
> (In reply to Steven Schveighoffer from comment #2)
> > I'm going to throw a shot in the dark out here, and say it's an issue with
> > DMC runtime. Which means it's really a problem with DMC, not DMD or phobos.
> 
> I agree. However, we might be able to work around thread safety issues in
> the DMC runtime using global locks.

Oh god! More locks :)

I strongly believe we should fix the issue in DMC. Can we create a C++ program
that will exhibit the same issue?

> 
> > I'll note that the DMC runtime has a limit of 64 file descriptors, including
> > the standard handles.
> 
> This shouldn't be relevant except when running the test program on systems
> with 64 or more processors/cores.

Oh, I didn't realize how the parallel foreach worked.

--


More information about the Digitalmars-d-bugs mailing list