MySQL  8.0.27
Source Code Documentation
sql_timer.h File Reference

Go to the source code of this file.

Functions

THD_timer_infothd_timer_set (THD *, THD_timer_info *, unsigned long)
 Set the time until the currently running statement is aborted. More...
 
THD_timer_infothd_timer_reset (THD_timer_info *)
 Deactivate the given timer. More...
 
void thd_timer_destroy (THD_timer_info *)
 Release resources allocated for a thread timer. More...
 

Function Documentation

◆ thd_timer_destroy()

void thd_timer_destroy ( THD_timer_info thd_timer)

Release resources allocated for a thread timer.

Parameters
thd_timerThread timer object.

◆ thd_timer_reset()

THD_timer_info* thd_timer_reset ( THD_timer_info thd_timer)

Deactivate the given timer.

Parameters
thd_timerThread timer object.
Returns
NULL if the timer object was orphaned. Otherwise, the given timer object is returned.

◆ thd_timer_set()

THD_timer_info* thd_timer_set ( THD thd,
THD_timer_info thd_timer,
unsigned long  time 
)

Set the time until the currently running statement is aborted.

Parameters
thdThread (session) context.
thd_timerThread timer object.
timeLength of time, in milliseconds, until the currently running statement is aborted.
Returns
NULL on failure.