www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9595] New: The thread priority can be setted only after the start()

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bitworld qq.com



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: -------
Feb 26 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9595


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxim maxim-fomin.ru
         Resolution|                            |DUPLICATE
         OS/Version|Windows                     |All



---
*** This issue has been marked as a duplicate of issue 8960 ***

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