MySQL 9.1.0
Source Code Documentation
sync0sync.cc File Reference

Mutex, the basic synchronization primitive. More...

#include "univ.i"
#include "sync0rw.h"
#include "sync0sync.h"

Functions

static void sync_print_wait_info (FILE *file)
 Prints wait info of the sync system. More...
 
void sync_print (FILE *file)
 Prints info of the sync system. More...
 
const char * sync_basename (const char *filename)
 Print the filename "basename" e.g., p = "/a/b/c/d/e.cc" -> p = "e.cc". More...
 
std::string sync_mutex_to_string (latch_id_t id, const std::string &created)
 String representation of the filename and line number where the latch was created. More...
 

Variables

mysql_pfs_key_t PFS_NOT_INSTRUMENTED (0)
 
MutexMonitormutex_monitor
 For monitoring active mutexes. More...
 

Detailed Description

Mutex, the basic synchronization primitive.

Created 9/5/1995 Heikki Tuuri

Function Documentation

◆ sync_basename()

const char * sync_basename ( const char *  filename)

Print the filename "basename" e.g., p = "/a/b/c/d/e.cc" -> p = "e.cc".

Print the filename "basename".

Parameters
[in]filenameName from where to extract the basename
Returns
the basename

◆ sync_mutex_to_string()

std::string sync_mutex_to_string ( latch_id_t  id,
const std::string &  created 
)

String representation of the filename and line number where the latch was created.

Parameters
[in]idLatch ID
[in]createdFilename and line number where it was created
Returns
the string representation

◆ sync_print()

void sync_print ( FILE *  file)

Prints info of the sync system.

Parameters
[in]filewhere to print

◆ sync_print_wait_info()

static void sync_print_wait_info ( FILE *  file)
static

Prints wait info of the sync system.

Note: The instrumental counters are deprecated and prints all 0 for compatibility.

Parameters
file- where to print

Variable Documentation

◆ mutex_monitor

MutexMonitor* mutex_monitor

For monitoring active mutexes.

Defined in sync0sync.cc.

◆ PFS_NOT_INSTRUMENTED

mysql_pfs_key_t PFS_NOT_INSTRUMENTED(0) ( )