mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Mark a few parallelism-related variables with PGDLLIMPORT.
Back-patch commit09a65f5a2
into the 9.6 and 10 branches. Needed to support back-patch of commit2cd4e8357
on Windows. Discussion: http://postgr.es/m/20190604011354.GD1529@paquier.xyz
This commit is contained in:
@ -48,8 +48,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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user