MySQL 8.0.39
Source Code Documentation
daemon_example.cc File Reference
#include <ctype.h>
#include <fcntl.h>
#include <mysql/plugin.h>
#include <mysql_version.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "m_string.h"
#include "my_dbug.h"
#include "my_dir.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_psi_config.h"
#include "my_sys.h"
#include "my_thread.h"
#include "mysql/psi/mysql_memory.h"
#include "sql/sql_plugin.h"

Classes

struct  mysql_heartbeat_context
 

Macros

#define HEART_STRING_BUFFER   100
 

Functions

static void init_deamon_example_psi_keys ()
 
static void * mysql_heartbeat (void *p)
 
static int daemon_example_plugin_init (void *p)
 
static int daemon_example_plugin_deinit (void *p)
 
 mysql_declare_plugin (daemon_example)
 

Variables

PSI_memory_key key_memory_mysql_heartbeat_context
 
static PSI_memory_info all_deamon_example_memory []
 
struct st_mysql_daemon daemon_example_plugin = {MYSQL_DAEMON_INTERFACE_VERSION}
 
 mysql_declare_plugin_end
 

Macro Definition Documentation

◆ HEART_STRING_BUFFER

#define HEART_STRING_BUFFER   100

Function Documentation

◆ daemon_example_plugin_deinit()

static int daemon_example_plugin_deinit ( void *  p)
static

◆ daemon_example_plugin_init()

static int daemon_example_plugin_init ( void *  p)
static

◆ init_deamon_example_psi_keys()

static void init_deamon_example_psi_keys ( )
static

◆ mysql_declare_plugin()

mysql_declare_plugin ( daemon_example  )

◆ mysql_heartbeat()

static void * mysql_heartbeat ( void *  p)
static

Variable Documentation

◆ all_deamon_example_memory

PSI_memory_info all_deamon_example_memory[]
static
Initial value:
= {
{&key_memory_mysql_heartbeat_context, "mysql_heartbeat_context", 0, 0,
#define PSI_DOCUMENT_ME
Definition: component_common.h:29
PSI_memory_key key_memory_mysql_heartbeat_context
Definition: daemon_example.cc:43

◆ daemon_example_plugin

struct st_mysql_daemon daemon_example_plugin = {MYSQL_DAEMON_INTERFACE_VERSION}

◆ key_memory_mysql_heartbeat_context

PSI_memory_key key_memory_mysql_heartbeat_context

◆ mysql_declare_plugin_end

mysql_declare_plugin_end