www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13443] New: stdin/stdout/stderr should be accessible from


          Issue ID: 13443
           Summary: stdin/stdout/stderr should be accessible from  safe
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: safe
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Currently, the standard File variables in std.stdio are not accessible from
 safe code, because they are declared as __gshared.

From looking at the code, it looks like they are indeed not thread-safe - the
reference counter is not incremented/decremented atomically. --
Sep 09 2014