public ProdConsSyncBuffer(MpiHandler communicator, int bufferSize) : base(communicator)
 {
     Internals = new ProdConsInternals <T>()
     {
         N      = bufferSize,
         Buffer = new List <T>(),
         Full   = new ConditionalVar()
         {
             WaitingQueue = new List <int>(), Name = "Full"
         },
         Empty = new ConditionalVar()
         {
             WaitingQueue = new List <int>(), Name = "Empty"
         }
     };
 }
Пример #2
0
 public TestMonitor(MpiHandler communicator) : base(communicator)
 {
     Internals = 0;
 }
Пример #3
0
 protected Monitor(MpiHandler communicator)
 {
     Communicator     = communicator;
     _syncEntryNumber = 0;
 }