My Project
Public Member Functions
Interruptible_wait Class Reference

List of all members.

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.

Member Function Documentation

void Interruptible_wait::set_timeout ( ulonglong  timeout) [inline]

Set the absolute timeout.

Parameters:
timeoutThe 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.

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines