MySQL 8.0.39
Source Code Documentation
Event_queue_less Struct Reference

#include <event_queue.h>

Public Member Functions

bool operator() (Event_queue_element *left, Event_queue_element *right)
 Maps compare function to strict weak ordering required by Priority_queue. More...
 
int event_queue_element_compare_q (Event_queue_element *left, Event_queue_element *right)
 Compares the execute_at members of two Event_queue_element instances. More...
 

Member Function Documentation

◆ event_queue_element_compare_q()

int Event_queue_less::event_queue_element_compare_q ( Event_queue_element left,
Event_queue_element right 
)
inline

Compares the execute_at members of two Event_queue_element instances.

Used as compare operator for the prioritized queue when shifting elements inside.

SYNOPSIS event_queue_element_compare_q()

Parameters
leftFirst Event_queue_element object
rightSecond Event_queue_element object
Return values
-1left->execute_at < right->execute_at 0 left->execute_at == right->execute_at 1 left->execute_at > right->execute_at
Remarks
execute_at.second_part is not considered during comparison

◆ operator()()

bool Event_queue_less::operator() ( Event_queue_element left,
Event_queue_element right 
)
inline

Maps compare function to strict weak ordering required by Priority_queue.


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