diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-03-09 15:44:41 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-03-09 15:44:41 +0900 |
commit | f160bf06f72ab242a8336eff108a1f4e69539b77 (patch) | |
tree | 180a8e5e77d0489b25b6f166f7d781e10c661512 | |
parent | 33ee2550d30bebb938238846369b2aae10e7f00f (diff) | |
download | postgresql-f160bf06f72ab242a8336eff108a1f4e69539b77.tar.gz postgresql-f160bf06f72ab242a8336eff108a1f4e69539b77.zip |
Document units of "timeout" in ConditionVariableTimedSleep()
The timeout is passed down to WaitLatch() as milliseconds.
Author: Shveta Malik
Discussion: https://postgr.es/m/CAJpy0uC=xiBQD1WapgYYvOiytap6ULJaakLd867zZXqu9tYc8w@mail.gmail.com
-rw-r--r-- | src/backend/storage/lmgr/condition_variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/condition_variable.c b/src/backend/storage/lmgr/condition_variable.c index 1e8559ed47b..112a518bae0 100644 --- 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. |