Use CRITICAL_SECTION instead of Mutexes for thread-locking in libpq on
Magnus Hagander <magnus@hagander.net>
Use CRITICAL_SECTION instead of Mutexes for thread-locking in libpq on Windows, for better performance. Per suggestion from Andrew Chernow, but not his patch since the underlying code was changed to deal with return values.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/pthread-win32.c | modified | +8 −5 |
| src/port/pthread-win32.h | modified | +2 −2 |