mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
We don't need to include pg_sema.h in s_lock.h anymore.
Minor improvement to commit daa7527afc
:
s_lock.h no longer has any need to mention PGSemaphoreData, so we can
rip out the #include that supplies that. In a non-HAVE_SPINLOCKS
build, this doesn't really buy much since we still need the #include
in spin.h --- but everywhere else, this reduces #include footprint by
some trifle, and helps keep the different locking facilities separate.
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
#define SPIN_H
|
||||
|
||||
#include "storage/s_lock.h"
|
||||
#ifndef HAVE_SPINLOCKS
|
||||
#include "storage/pg_sema.h"
|
||||
#endif
|
||||
|
||||
|
||||
#define SpinLockInit(lock) S_INIT_LOCK(lock)
|
||||
|
Reference in New Issue
Block a user