private static void ConsumerWaitForProducer(object writerLock) { lock (writerLock) { Monitor.Wait(writerLock); } }