public void AddRegular(IReadWriteTask task) { lock (mutex) { regularReadWriteTasks.Add(task); } }
public void Add(IReadWriteTask task) { lock (mutex) { nextReadWriteTasks.Add(task); } }