Mark a few parallelism-related variables with PGDLLIMPORT.
Back-patch commit 09a65f5a2 into the 9.6 and 10 branches. Needed to support back-patch of commit 2cd4e8357 on Windows. Discussion: http://postgr.es/m/20190604011354.GD1529@paquier.xyz
This commit is contained in:
parent
ba38967d75
commit
974a2867ea
@ -47,8 +47,8 @@ typedef struct ParallelContext
|
|||||||
} ParallelContext;
|
} ParallelContext;
|
||||||
|
|
||||||
extern volatile bool ParallelMessagePending;
|
extern volatile bool ParallelMessagePending;
|
||||||
extern int ParallelWorkerNumber;
|
extern PGDLLIMPORT int ParallelWorkerNumber;
|
||||||
extern bool InitializingParallelWorker;
|
extern PGDLLIMPORT bool InitializingParallelWorker;
|
||||||
|
|
||||||
#define IsParallelWorker() (ParallelWorkerNumber >= 0)
|
#define IsParallelWorker() (ParallelWorkerNumber >= 0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user