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

Public Member Functions

Uint32 used () const

Public Attributes

unsigned m_read_index
unsigned m_write_index

Detailed Description

thr_job_queue is shared between consumer / producer.

The hot-spot of the thr_job_queue are the read/write indexes. As they are updated and read frequently they have been placed in its own thr_job_queue_head[] in order to make them fit inside a single/few cache lines and thereby avoid complete L1-cache replacement every time the job_queue is scanned.

Definition at line 626 of file mt.cpp.


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