Ejemplo n.º 1
0
 public StandardConcurrentTestCase(string description, Action <T> writerThreadExecAction, Action <T> readerThreadExecAction, ConcurrentTestCaseThreadConfig threadConfig)
 {
     Description             = description;
     ThreadConfig            = threadConfig;
     _writerThreadExecAction = writerThreadExecAction;
     _readerThreadExecAction = readerThreadExecAction;
 }
Ejemplo n.º 2
0
 public IterativeConcurrentTestCase(string description, Action <T> writerThreadExecAction, Action <T> readerThreadExecAction, ConcurrentTestCaseThreadConfig threadConfig, int numIterationsTotalPerThreadType, bool iterateWriters, bool iterateReaders, Action writerThreadCompletionAction, Action readerThreadCompletionAction)
 {
     Description                      = description;
     ThreadConfig                     = threadConfig;
     _writerThreadExecAction          = writerThreadExecAction;
     _readerThreadExecAction          = readerThreadExecAction;
     _numIterationsTotalPerThreadType = numIterationsTotalPerThreadType;
     _iterateWriters                  = iterateWriters;
     _iterateReaders                  = iterateReaders;
     _writerThreadCompletionAction    = writerThreadCompletionAction;
     _readerThreadCompletionAction    = readerThreadCompletionAction;
 }
Ejemplo n.º 3
0
 public IterativeConcurrentTestCase(string description, Action <T> writerThreadExecAction, Action <T> readerThreadExecAction, ConcurrentTestCaseThreadConfig threadConfig, int numIterationsTotalPerThreadType, bool iterateWriters, bool iterateReaders)
     : this(description, writerThreadExecAction, readerThreadExecAction, threadConfig, numIterationsTotalPerThreadType, iterateWriters, iterateReaders, null, null)
 {
 }