MySQL 26.7.0
Source Code Documentation
mysql::scheduler::Task_registry_multi< Task_id_type, Task_object_type >::Sub_entry Struct Reference

Each bucket is capable of handling many subentries. More...

Public Member Functions

 Sub_entry (Task_object &&obj)
 Construct from object. More...
 

Public Attributes

Task_object m_obj
 Internal object, type defined by the caller. More...
 

Detailed Description

template<typename Task_id_type, typename Task_object_type>
struct mysql::scheduler::Task_registry_multi< Task_id_type, Task_object_type >::Sub_entry

Each bucket is capable of handling many subentries.

This structure represents a bucket subentry, which is visible to the caller as registry entry. Access to entry is protected with a bucket lock - all entries in the same bucket share the same lock. Entries are put into the same bucket when they share the same registry hash (hash conflict).

Constructor & Destructor Documentation

◆ Sub_entry()

template<typename Task_id_type , typename Task_object_type >
mysql::scheduler::Task_registry_multi< Task_id_type, Task_object_type >::Sub_entry::Sub_entry ( Task_object &&  obj)
inline

Construct from object.

Parameters
objObject handled by the Task_registry_multi Access to the object is protected with registry bucket lock (Subentries share the same lock)

Member Data Documentation

◆ m_obj

template<typename Task_id_type , typename Task_object_type >
Task_object mysql::scheduler::Task_registry_multi< Task_id_type, Task_object_type >::Sub_entry::m_obj

Internal object, type defined by the caller.


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