private AccessSafely(int happenings) { totalWrites = new AtomicInteger(0); until = TestUntil.Happenings(happenings); biConsumers = new Dictionary <string, object>(); consumers = new Dictionary <string, object>(); functions = new Dictionary <string, object>(); suppliers = new Dictionary <string, object>(); @lock = new object(); }
private AccessSafely(AccessSafely existing, int happenings) { totalWrites = existing.totalWrites; until = TestUntil.Happenings(happenings); biConsumers = existing.biConsumers; consumers = existing.consumers; functions = existing.functions; suppliers = existing.suppliers; @lock = new object(); }