Bug 9595 – The thread priority can be setted only after the start()

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-26T05:19:00Z
Last change time
2013-06-13T00:39:50Z
Assigned to
nobody
Creator
bitworld

Comments

Comment #0 by bitworld — 2013-02-26T05:19:29Z
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
Comment #1 by maxim — 2013-06-13T00:39:50Z
*** This issue has been marked as a duplicate of issue 8960 ***