pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f

pgsql: Fix ancient bug in ecpg's pthread_once() emulation for Windows.

2020-10-24 Thread Tom Lane
Fix ancient bug in ecpg's pthread_once() emulation for Windows. We must not set the "done" flag until after we've executed the initialization function. Otherwise, other threads can fall through the initial unlocked test before initialization is really complete. This has been seen to cause rare f