shared WorkerClass[] myWorkerArray;
static this()
{
myWorkerArray = new shared(WorkerClass)[numberOfWorkers];
}
This should probably be "shared static this()". I'm guessing one would want this to run once before main(), not every time a thread is started.
