MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Interruptible_wait Class Reference

Public Member Functions

 Interruptible_wait (THD *thd)
void set_timeout (ulonglong timeout)
int wait (mysql_cond_t *, mysql_mutex_t *)

Detailed Description

Enables a session to wait on a condition until a timeout or a network disconnect occurs.

Remarks
The connection is polled every m_interrupt_interval nanoseconds.

Definition at line 4149 of file item_func.cc.

Member Function Documentation

void Interruptible_wait::set_timeout ( ulonglong  timeout)
inline

Set the absolute timeout.

Parameters
timeoutThe amount of time in nanoseconds to wait

Definition at line 4167 of file item_func.cc.

Here is the caller graph for this function:

int Interruptible_wait::wait ( mysql_cond_t cond,
mysql_mutex_t mutex 
)

The timed wait.

Wait for a given condition to be signaled.

Parameters
condThe condition variable to wait on.
mutexThe associated mutex.
Remarks
The absolute timeout is preserved across calls.
Return values
returnvalue from mysql_cond_timedwait

Definition at line 4198 of file item_func.cc.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: