Original Post
Hi, WINAPI: what is the difference between these two synchronization methods? Is there any in what it is doing? Is there a difference in how it is behaving under the hood? And I wonder: Is a critical section simply implemented with a mutex? Bye, Zoomby
ma = CreateMutex(NULL,FALSE,TEXT("M1"));
WaitForSingleObject(ma,INFINITE);
...
ReleaseMutex(ma);
ea = CreateEvent(NULL,FALSE,TRUE,TEXT("E1"));
WaitForSingleObject(ea,INFINITE);
...
SetEvent(ea);