[phobos] std.parallelism: Request for review/comment

David Simcha dsimcha at gmail.com
Tue Aug 31 21:34:22 PDT 2010


  On 8/31/2010 11:33 PM, David Simcha wrote:
> Unfortunately, core.cpuid is still kind of buggy, so on a lot of newer 
> Intel machines the default pool will have the wrong number of threads 
> until this gets fixed.  If anyone can think of a decent API, I can 
> make the number of threads in the default pool configurable.

Never mind, I ended up just defining global getter and setter functions 
for this.  The value is initially set via a static this() statement to 
coresPerCPU - 1, so if it's never set, that's the default.


More information about the phobos mailing list