diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/storage/lock.h | 2 | ||||
-rw-r--r-- | src/include/storage/proc.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 8b328a06d9e..787f3db06a9 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -585,6 +585,8 @@ extern bool LockCheckConflicts(LockMethod lockMethodTable, LOCK *lock, PROCLOCK *proclock); extern void GrantLock(LOCK *lock, PROCLOCK *proclock, LOCKMODE lockmode); extern void GrantAwaitedLock(void); +extern LOCALLOCK *GetAwaitedLock(void); + extern void RemoveFromWaitQueue(PGPROC *proc, uint32 hashcode); extern LockData *GetLockStatusData(void); extern BlockedProcsData *GetBlockerStatusData(int blocked_pid); diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index d119465fa0d..5a3dd5d2d40 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -484,13 +484,12 @@ extern int GetStartupBufferPinWaitBufId(void); extern bool HaveNFreeProcs(int n, int *nfree); extern void ProcReleaseLocks(bool isCommit); -extern ProcWaitStatus ProcSleep(LOCALLOCK *locallock, - LockMethod lockMethodTable, - bool dontWait); +extern ProcWaitStatus JoinWaitQueue(LOCALLOCK *locallock, + LockMethod lockMethodTable, bool dontWait); +extern ProcWaitStatus ProcSleep(LOCALLOCK *locallock); extern void ProcWakeup(PGPROC *proc, ProcWaitStatus waitStatus); extern void ProcLockWakeup(LockMethod lockMethodTable, LOCK *lock); extern void CheckDeadLockAlert(void); -extern bool IsWaitingForLock(void); extern void LockErrorCleanup(void); extern void ProcWaitForSignal(uint32 wait_event_info); |