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