MySQL 5.6.14 Source Code Document
|
Public Member Functions | |
Uint32 | used () const |
Public Attributes | |
unsigned | m_read_index |
unsigned | m_write_index |
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.