Пример #1
0
        private static Thread sync_layer_in_thread(Network[] nets, int n, int j)
        {
            SyncArgs ptr = new SyncArgs();

            ptr.Nets = nets;
            ptr.N    = n;
            ptr.J    = j;

            Thread thread = new Thread(() => sync_layer_thread(ptr));

            thread.Start();
            return(thread);
        }
Пример #2
0
 private static void sync_layer_thread(SyncArgs ptr)
 {
     sync_layer(ptr.Nets, ptr.N, ptr.J);
 }