MySQL
9.2.0
Source Code Documentation
mysql_current_thread_reader.h
Go to the documentation of this file.
1
/* Copyright (c) 2019, 2024, Oracle and/or its affiliates.
2
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License, version 2.0,
5
as published by the Free Software Foundation.
6
7
This program is designed to work with certain software (including
8
but not limited to OpenSSL) that is licensed under separate terms,
9
as designated in a particular file or component or in included license
10
documentation. The authors of MySQL hereby grant you an additional
11
permission to link the program and your derivative works with the
12
separately licensed software that they have either included with
13
the program or referenced in the documentation.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License, version 2.0, for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24
#ifndef MYSQL_CURRENT_THREAD_READER_H
25
#define MYSQL_CURRENT_THREAD_READER_H
26
27
#include <
mysql/components/service.h
>
28
#include <
mysql/components/services/bits/thd.h
>
29
30
/**
31
@ingroup group_components_services_inventory
32
33
A service to fetch the current thread id
34
35
Use in conjunction with all the related services that operate on thread ids
36
@sa mysql_component_mysql_current_thread_reader_imp
37
*/
38
BEGIN_SERVICE_DEFINITION
(
mysql_current_thread_reader
)
39
/**
40
get the current THD.
41
42
@param[out] thread id
43
@return Status of performed operation
44
@retval false success (valid password)
45
@retval true failure (invalid password)
46
*/
47
DECLARE_BOOL_METHOD
(
get
, (
MYSQL_THD
* thd));
48
49
END_SERVICE_DEFINITION
(
mysql_current_thread_reader
)
50
51
#endif
/* MYSQL_CURRENT_THREAD_READER_H */
MYSQL_THD
#define MYSQL_THD
Definition:
backup_page_tracker.h:38
mysql_current_thread_reader_all_empty_spc::get
static mysql_service_status_t get(THD **thd) noexcept
Definition:
mysql_current_thread_reader_all_empty.cc:31
mysql_current_thread_reader
const mysql_service_mysql_current_thread_reader_t * mysql_current_thread_reader
Definition:
rewriter_plugin.cc:63
service.h
END_SERVICE_DEFINITION
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition:
service.h:91
BEGIN_SERVICE_DEFINITION
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition:
service.h:86
DECLARE_BOOL_METHOD
#define DECLARE_BOOL_METHOD(name, args)
Declares a method that returns bool as a part of the Service definition.
Definition:
service.h:112
thd.h
include
mysql
components
services
mysql_current_thread_reader.h
Generated by
1.9.2