//windows核心编程5th生产者部分请求独占锁锁AcquireSRWLockExclusive(&g_srwLock)程序处于运行状态,并且数据已满:生产者转入休眠状态SleepConditionVariableSRW(&g_cvReadyToProduce,&g_srwLock,INFINITE,0);程序停止工作:释放独占锁并且唤醒其它生产者退出程序ReleaseSRWLockExclusive(&g_srwLock);WakeAllConditionVariable(&g_cvReadyToProduce);否则:释放独占锁并且唤醒一个消费者ReleaseSRWLockExc