D-Programming-Language/phobos — pull request #881 by dsimcha (2012-10-18 18:39:19+00:00)
Title: Fix Issue 8849

Fixes Issue 8849: std.parallelism.executeInNewThread with thread priority segfaults. This was caused by trying to set the priority of a thread that isn't started yet. Apparently this can't be done and noone, myself included, ever noticed until now. The solution is to set the priority after starting the thread. This is not ideal because the thread can theoretically run a long time before having its priority switched, but it's probably the best we can do.