How to use large size array, which are shared

jerro a at a.com
Sun Jan 27 15:06:44 PST 2013


> 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.


More information about the Digitalmars-d mailing list