MySQL  8.0.19
Source Code Documentation
srv_slot_t Struct Reference

Thread slot in the thread table. More...

#include <srv0srv.h>

Public Attributes

srv_thread_type type
 Thread type: user, utility etc. More...
 
bool in_use
 TRUE if this slot is in use. More...
 
bool suspended
 TRUE if the thread is waiting for the event of this slot. More...
 
ib_time_monotonic_t suspend_time
 Time when the thread was suspended. More...
 
uint64_t reservation_no
 Stores the current value of lock_wait_table_reservations, when lock_wait_table_reserve_slot is called. More...
 
ulong wait_timeout
 Wait time that if exceeded the thread will be timed out. More...
 
os_event_t event
 Event used in suspending the thread when it has nothing to do. More...
 
que_thr_tthr
 Suspended query thread (only used for user threads). More...
 

Detailed Description

Thread slot in the thread table.


Member Data Documentation

◆ event

os_event_t srv_slot_t::event

Event used in suspending the thread when it has nothing to do.

◆ in_use

bool srv_slot_t::in_use

TRUE if this slot is in use.

◆ reservation_no

uint64_t srv_slot_t::reservation_no

Stores the current value of lock_wait_table_reservations, when lock_wait_table_reserve_slot is called.

This can be used as a version number to avoid ABA problems. Protected by lock->wait_mutex.

◆ suspend_time

ib_time_monotonic_t srv_slot_t::suspend_time

Time when the thread was suspended.

Initialized by lock_wait_table_reserve_slot() for lock wait.

◆ suspended

bool srv_slot_t::suspended

TRUE if the thread is waiting for the event of this slot.

◆ thr

que_thr_t* srv_slot_t::thr

Suspended query thread (only used for user threads).

◆ type

srv_thread_type srv_slot_t::type

Thread type: user, utility etc.

◆ wait_timeout

ulong srv_slot_t::wait_timeout

Wait time that if exceeded the thread will be timed out.

Initialized by lock_wait_table_reserve_slot() for lock wait.


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