Fetch the entire queue and empty it. @return Pointer to the first session of the queue. */
| 196 | @return Pointer to the first session of the queue. |
| 197 | */ |
| 198 | THD *fetch_queue_for(StageID stage) { |
| 199 | DBUG_PRINT("debug", ("Fetching queue for stage %d", stage)); |
| 200 | return m_queue[stage].fetch_and_empty(); |
| 201 | } |
| 202 | |
| 203 | void signal_done(THD *queue) { |
| 204 | mysql_mutex_lock(&m_lock_done); |
nothing calls this directly
no test coverage detected