13,871
社区成员




thread1::run()
{
while(1)
{
WaitForSingleObject(a_mtx, INFINITE)
functionA();
ReleaseMutex(a_mtx);
}
}
functionA()
{
WaitForSingleObject(a_mtx, INFINITE)
do_something();
ReleaseMutex(a_mtx);
}