October 15, 2008 [Issue 2419] New: Thread.getThis() broken? | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2419 Summary: Thread.getThis() broken? Product: D Version: 2.019 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: johnch_atms@hotmail.com Thread.getThis throws an exception and prints "didn't find it" on the command line. It appears that Thread.thread_init isn't getting called as it should during gc_init. Only when I explicitly call Thread.thread_init in my main procedure, does Thread.getThis return a valid object. This sample program should repro the issue: import std.thread; void main() { Thread.getThis(); } (Compiled with -debug -g -O -inline flags.) -- |
January 27, 2013 [Issue 2419] Thread.getThis() broken? | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2419 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |WORKSFORME --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-26 18:36:44 PST --- Works in 2.061 (changing the import to core.thread first). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation