Пример #1
0
 public PCARS2_SharedMemoryData()
 {
     _mc             = MemoryController.GetInstance();
     participantInfo = new ParticipantData[Participants_Max];
     for (int i = 0; i < Participants_Max; i++)
     {
         participantInfo[i] = new ParticipantData(i);
     }
 }
Пример #2
0
 public static MemoryController GetInstance()
 {
     if (_instance == null)
     {
         lock (_lock)
         {
             if (_instance == null)
             {
                 _instance = new MemoryController();
             }
         }
     }
     return(_instance);
 }
Пример #3
0
 public ParticipantData(int index)
 {
     _mc     = MemoryController.GetInstance();
     _index  = index;
     offset += 100 * index;
 }