Skip to content

Commit f160bf0

Browse files
committed
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
1 parent 33ee255 commit f160bf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/storage/lmgr/condition_variable.c

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ ConditionVariableSleep(ConditionVariable *cv, uint32 wait_event_info)
102102
/*
103103
* Wait for a condition variable to be signaled or a timeout to be reached.
104104
*
105+
* The "timeout" is given in milliseconds.
106+
*
105107
* Returns true when timeout expires, otherwise returns false.
106108
*
107109
* See ConditionVariableSleep() for general usage.

0 commit comments

Comments
 (0)