PostgreSQL Source Code: src/include/utils/timeout.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef TIMEOUT_H

15#define TIMEOUT_H

16

18

19

20

21

22

24{

25

39

41

44

45

47

48

49

50

52{

57

58typedef struct

59{

62 int delay_ms;

65

66

67

68

69typedef struct

70{

74

75

79

80

83 int delay_ms);

89

90

95

96#endif

void enable_timeout_after(TimeoutId id, int delay_ms)

void reschedule_timeouts(void)

bool get_timeout_active(TimeoutId id)

void(* timeout_handler_proc)(void)

void disable_all_timeouts(bool keep_indicators)

TimestampTz get_timeout_finish_time(TimeoutId id)

void InitializeTimeouts(void)

TimestampTz get_timeout_start_time(TimeoutId id)

void enable_timeout_every(TimeoutId id, TimestampTz fin_time, int delay_ms)

@ STARTUP_PROGRESS_TIMEOUT

@ IDLE_IN_TRANSACTION_SESSION_TIMEOUT

@ STANDBY_DEADLOCK_TIMEOUT

@ IDLE_STATS_UPDATE_TIMEOUT

@ CLIENT_CONNECTION_CHECK_TIMEOUT

void enable_timeout_at(TimeoutId id, TimestampTz fin_time)

void disable_timeout(TimeoutId id, bool keep_indicator)

void enable_timeouts(const EnableTimeoutParams *timeouts, int count)

TimeoutId RegisterTimeout(TimeoutId id, timeout_handler_proc handler)

void disable_timeouts(const DisableTimeoutParams *timeouts, int count)

bool get_timeout_indicator(TimeoutId id, bool reset_indicator)