This is a 'It works but I guess it can be done more clever' question:
A thread has to wait until a second thread has done its work. Actually I use a critical section:
EnterSection; // Suspend thread 1, I'm sure thread 2 already entered the section
EnterSection; // To suspend thread 1
LeaveSection; // Resume thread 1
Can I use a 'WaitForXYZ' instead. I've never done this before...