Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Py_HAVE_CONDVAR denotes support for Python condition variable APIs. On Win32, the_PY_EMULATED_WIN_CV macro exists to allow condition variables to be emulated using Win32 critical section and semaphore APIs.
Native Win32 support for condition variables has existed from Windows Vista onwards (courtesy of my friend and fellow ex-MSFT colleague Neill Clift).
An implementation of Python condition variable also exists with_PY_EMULATED_WIN_CV set to0 which uses native Win32 condition variable / SRW lock (mutex) support.
Sincesupport for Windows XP was dropped as of Python 3.5, I propose moving to the native Win32 condition variable APIs, as they are more efficient and easier to maintain.