生产者消费者问题缓冲区互斥临界区 生产者消费者问题 while(1) { WaitForSingleObject(hMutex,INFINITE); if(count==BufferSize){ //缓冲区满 ReleaseMutex(hMutex); //等待直到缓冲区非满 WaitForSingleObject(hNotFull