www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10986] New: thread_attachThis doesn't initialize shared libraries

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10986

           Summary: thread_attachThis doesn't initialize shared libraries
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: dll
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu



I didn't tested this, but I just realized, that a foreign thread added through
thread_attachThis has currently no way of knowing which DSOs it needs to
initialize. So it'll likely end up not calling any thread ctors (static
this();) at all.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 07 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10986




I thought about this and I think inheriting the loaded libraries of the main
thread would be a sane behavior.
The main thread is the one that runs D main or the one that dlopened druntime.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2013