C language function:EnterSynchronizationBarrier sample codes

Search sample code in the internet.It is the result.


TITLE : Playing with synchroninzation barriers – The Old New Thing
if (EnterSynchronizationBarrier(&barrier, 0)) {.......
http://blogs.msdn.microsoft.com/oldnewthing/20151123-00/@p=92161


TITLE : Playing with synchroninzation barriers – The Old New Thing
For each thread, EnterSynchronizationBarrier() enters a critical section to (a) decrement this counter (=> result value is C) and (b) if C > 0, an unused event handle from this structure is find and marked as in-use. Then the critical section is leaved........
http://blogs.msdn.microsoft.com/oldnewthing/20151123-00/@p=92161
TITLE : WaitForSingleObjectEx function (Windows)
BOOL WINAPI EnterSynchronizationBarrier(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/hh706889(v=vs.85).aspx
search Google

https://www.google.com/#q=EnterSynchronizationBarrier