Thread overview
[Issue 3443] New: Thread.thread_needLock() should be const pure nothrow
Oct 26, 2009
David Simcha
Oct 31, 2009
Sean Kelly
Oct 31, 2009
David Simcha
Dec 04, 2009
Sean Kelly
Dec 06, 2009
Brad Roberts
[Issue 3443] Thread.thread_needLock() should be nothrow
Dec 10, 2009
David Simcha
Dec 31, 2009
Walter Bright
October 26, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443

           Summary: Thread.thread_needLock() should be const pure nothrow
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean@invisibleduck.org
        ReportedBy: dsimcha@yahoo.com


--- Comment #0 from David Simcha <dsimcha@yahoo.com> 2009-10-26 06:21:38 PDT ---
All it does is return a boolean member variable, so it clearly is really const pure nothrow.  Fixing this would allow me to remove a serious kludge from some of my code.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443


Sean Kelly <sean@invisibleduck.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


--- Comment #1 from Sean Kelly <sean@invisibleduck.org> 2009-10-30 21:53:04 PDT ---
This isn't even a member of Thread, it's a global extern (C) routine.  I can mark it nothrow, but const doesn't make sense and pure doesn't apply, since its result depends on the value of a global.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443



--- Comment #2 from David Simcha <dsimcha@yahoo.com> 2009-10-31 13:31:10 PDT ---
Good enough.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 04, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443



--- Comment #3 from Sean Kelly <sean@invisibleduck.org> 2009-12-04 06:58:14 PST ---
Added nothrow in r209.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 06, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443


Brad Roberts <braddr@puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr@puremagic.com


--- Comment #4 from Brad Roberts <braddr@puremagic.com> 2009-12-05 22:18:44 PST ---
food for thought: the change doesn't match the bug description, and neither does the change log entry.  I'd suggest changing both to better reflect what was done.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 10, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443


David Simcha <dsimcha@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #5 from David Simcha <dsimcha@yahoo.com> 2009-12-09 20:37:56 PST ---
Fixed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3443


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> 2009-12-31 11:19:20 PST ---
Fixed dmd 2.038

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