#include <sql_service_command.h>
◆ Session_plugin_thread()
◆ ~Session_plugin_thread()
Session_plugin_thread::~Session_plugin_thread |
( |
| ) |
|
◆ get_service_interface()
◆ launch_session_thread()
int Session_plugin_thread::launch_session_thread |
( |
void * |
plugin_pointer_var, |
|
|
const char * |
user |
|
) |
| |
Launch a new thread that will create a new server session.
- Parameters
-
plugin_pointer_var | the plugin pointer for session creation |
user | the user for the connection |
- Returns
- the operation was successful
- Return values
-
◆ queue_new_method_for_application()
void Session_plugin_thread::queue_new_method_for_application |
( |
long(Sql_service_commands::*)(Sql_service_interface *, void *) |
method, |
|
|
bool |
terminate = false |
|
) |
| |
Method to submit a new method into execution on the session thread.
- Parameters
-
method | method to executed |
terminate | termination flag to the class |
◆ session_thread_handler()
int Session_plugin_thread::session_thread_handler |
( |
| ) |
|
Thread handler for session creation.
◆ set_return_pointer()
void Session_plugin_thread::set_return_pointer |
( |
void * |
pointer | ) |
|
|
inline |
Sets a pointer that the next queued method will use to return a value.
- Parameters
-
pointer | the pointer where the method will store some return value |
◆ terminate_session_thread()
int Session_plugin_thread::terminate_session_thread |
( |
| ) |
|
Terminate the thread and close the session.
- Returns
- the operation was successful
- Return values
-
◆ wait_for_method_execution()
long Session_plugin_thread::wait_for_method_execution |
( |
| ) |
|
Wait for the queued method to return.
- Returns
- the return value of the submitted method
◆ command_interface
◆ incoming_methods
◆ m_method_cond
◆ m_method_execution_completed
bool Session_plugin_thread::m_method_execution_completed |
|
private |
Session thread method completion flag.
◆ m_method_execution_return_value
long Session_plugin_thread::m_method_execution_return_value |
|
private |
◆ m_method_lock
◆ m_plugin_pointer
void* Session_plugin_thread::m_plugin_pointer |
|
private |
◆ m_plugin_session_pthd
◆ m_run_cond
◆ m_run_lock
◆ m_server_interface
◆ m_session_thread_error
int Session_plugin_thread::m_session_thread_error |
|
private |
Session thread error flag.
◆ m_session_thread_state
◆ m_session_thread_terminate
bool Session_plugin_thread::m_session_thread_terminate |
|
private |
Session termination flag.
◆ return_object
void* Session_plugin_thread::return_object |
|
private |
The value for returning on methods.
◆ session_user
const char* Session_plugin_thread::session_user |
|
private |
The user for the session connection.
The documentation for this class was generated from the following files: