mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Introduce timed waits for condition variables.
Provide ConditionVariableTimedSleep(), like ConditionVariableSleep() but with a timeout argument. Author: Shawn Debnath Reviewed-by: Kyotaro Horiguchi, Thomas Munro Discussion: https://postgr.es/m/eeb06007ccfe46e399df6af18bfcd15a@EX13D05UWC002.ant.amazon.com
This commit is contained in:
@@ -43,6 +43,8 @@ extern void ConditionVariableInit(ConditionVariable *cv);
|
||||
* the condition variable.
|
||||
*/
|
||||
extern void ConditionVariableSleep(ConditionVariable *cv, uint32 wait_event_info);
|
||||
extern bool ConditionVariableTimedSleep(ConditionVariable *cv, long timeout,
|
||||
uint32 wait_event_info);
|
||||
extern void ConditionVariableCancelSleep(void);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user