git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33ee255)
Document units of "timeout" in ConditionVariableTimedSleep()
Sat, 9 Mar 2024 06:44:41 +0000 (15:44 +0900)
Sat, 9 Mar 2024 06:44:41 +0000 (15:44 +0900)
The timeout is passed down to WaitLatch() as milliseconds.

Author: Shveta Malik
Discussion: https://postgr.es/m/CAJpy0uC=xiBQD1WapgYYvOiytap6ULJaakLd867zZXqu9tYc8w@mail.gmail.com


diff --git a/src/backend/storage/lmgr/condition_variable.c b/src/backend/storage/lmgr/condition_variable.c
index 1e8559ed47bae6152682801a7763888d2ea22a20..112a518bae0729d284ea4651d27ff63db23f85d3 100644 (file)
--- a/src/backend/storage/lmgr/condition_variable.c
+++ b/src/backend/storage/lmgr/condition_variable.c
@@ -102,6 +102,8 @@ ConditionVariableSleep(ConditionVariable *cv, uint32 wait_event_info)
/*
* Wait for a condition variable to be signaled or a timeout to be reached.
*
+ * The "timeout" is given in milliseconds.
+ *
* Returns true when timeout expires, otherwise returns false.
*
* See ConditionVariableSleep() for general usage.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /