用条件变量模拟 WaitForMultipleObjects

WaitForMultipleObjects 的轻量级模拟。代码