![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
For handling sync points in child threads spawned by a foreground thread. More...
#include <sync0debug.h>
Public Member Functions | |
| Sync_point (const THD *thd) noexcept | |
| Constructor.  More... | |
| Sync_point (const Sync_point &)=default | |
| Sync_point & | operator= (const Sync_point &)=default | 
| ~Sync_point ()=default | |
| Destructor.  More... | |
Static Public Member Functions | |
| static void | add (const THD *thd, const std::string &target) noexcept | 
| Add a target to the list of sync points, nop for duplicates.  More... | |
| static bool | enabled (const THD *thd, const std::string &target) noexcept | 
| Check if a target is enabled.  More... | |
| static bool | enabled (const std::string &target) noexcept | 
| Check if a target is enabled.  More... | |
| static void | erase (const THD *thd, const std::string &target) noexcept | 
| Clear the named target.  More... | |
Private Types | |
| using | Targets = std::vector< std::string, ut::allocator< std::string > > | 
| using | Sync_points = std::vector< Sync_point, ut::allocator< Sync_point > > | 
Private Attributes | |
| const THD * | m_thd {} | 
| Server connection/session context.  More... | |
| Targets | m_targets {} | 
| List of enabled targets.  More... | |
Static Private Attributes | |
| static std::mutex | s_mutex {} | 
| Mutex protecting access to Sync_point infrastructure.  More... | |
| static Sync_points | s_sync_points {} | 
| Sync points.  More... | |
For handling sync points in child threads spawned by a foreground thread.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  inlineexplicitnoexcept | 
Constructor.
| [in,out] | thd | Server connection/session context. | 
      
  | 
  default | 
      
  | 
  default | 
Destructor.
      
  | 
  staticnoexcept | 
Add a target to the list of sync points, nop for duplicates.
| [in] | thd | Server connection/session context. | 
| [in] | target | Target to add. | 
      
  | 
  staticnoexcept | 
Check if a target is enabled.
Disable it if found.
| [in] | target | Check if target is enabled. | 
      
  | 
  staticnoexcept | 
Check if a target is enabled.
Disable it if found.
| [in] | thd | Server connection/session context. | 
| [in] | target | Check if target is enabled. | 
      
  | 
  staticnoexcept | 
Clear the named target.
| [in] | thd | Server connection/session context. | 
| [in] | target | Check if target is enabled. | 
      
  | 
  default | 
      
  | 
  private | 
List of enabled targets.
      
  | 
  private | 
Server connection/session context.
      
  | 
  staticprivate | 
Mutex protecting access to Sync_point infrastructure.
      
  | 
  staticprivate | 
Sync points.