It appears that std.thread had an answer for this, but it has been removed from Phobos by the looks of things.
On a side note, why is std.thread still in the online documentation if it was removed long ago? What's the point of having a tool to automatically generate documentation if we're going to have out of date docs anyway?