MySQL 8.4.2
Source Code Documentation
|
Enables a session to wait on a condition until a timeout or a network disconnect occurs. More...
Public Member Functions | |
Interruptible_wait (THD *thd) | |
~Interruptible_wait ()=default | |
void | set_timeout (ulonglong timeout) |
Set the absolute timeout. More... | |
int | wait (mysql_cond_t *, mysql_mutex_t *) |
The timed wait. More... | |
Private Attributes | |
THD * | m_thd |
struct timespec | m_abs_timeout |
Static Private Attributes | |
static const ulonglong | m_interrupt_interval = 5 * 1000000000ULL |
Time to wait before polling the connection status. More... | |
Enables a session to wait on a condition until a timeout or a network disconnect occurs.
|
inline |
|
default |
|
inline |
Set the absolute timeout.
timeout | The amount of time in nanoseconds to wait |
int Interruptible_wait::wait | ( | mysql_cond_t * | cond, |
mysql_mutex_t * | mutex | ||
) |
The timed wait.
Wait for a given condition to be signaled.
cond | The condition variable to wait on. |
mutex | The associated mutex. |
return | value from mysql_cond_timedwait |
|
private |
|
staticprivate |
Time to wait before polling the connection status.
|
private |