[Issue 9595] New: The thread priority can be setted only after the start()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 26 05:19:30 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9595

           Summary: The thread priority can be setted only after the
                    start()
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bitworld at qq.com


--- Comment #0 from Heromyth <bitworld at qq.com> 2013-02-26 05:19:29 PST ---
Tested with DMD32 D Compiler v2.062 on Windows 7.

Example code is here:
        auto threadTimer = new Thread(&doWorkTimely);
        // threadTimer.priority = Thread.PRIORITY_MAX; // raise a
ThreadException
        threadTimer.start();
        threadTimer.priority = Thread.PRIORITY_MAX; // OK

The demo code can be seen from
https://bitbucket.org/heromyth/dtoolkit/src/a8b5f8874e3d82373b71a2ca5c9f02a73362b56a/toolkit/System/Timer.d?at=default

Bug alike: http://d.puremagic.com/issues/show_bug.cgi?id=8960

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


More information about the Digitalmars-d-bugs mailing list