mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Wsrep TLS service
This commit defines a TLS service interface. If the implementation is provided by the application when the provider is loaded, appropriate hooks are probed from the provider and the provider side hooks are initialized after the provider is loaded. A sample implementation to demostrate the use of TLS interface is provided in dbsim/db_tls.cpp. Also contains a change to thread service interface: The thread exit virtual method was changed to function pointer to allow thread exit path which does not involve C++.
This commit is contained in:
@ -28,7 +28,7 @@ namespace db
|
||||
class ti : public wsrep::thread_service
|
||||
{
|
||||
public:
|
||||
ti() { }
|
||||
ti();
|
||||
int before_init() override;
|
||||
int after_init() override;
|
||||
|
||||
@ -41,7 +41,6 @@ namespace db
|
||||
int detach(wsrep::thread_service::thread*) WSREP_NOEXCEPT override;
|
||||
int equal(wsrep::thread_service::thread*,
|
||||
wsrep::thread_service::thread*) WSREP_NOEXCEPT override;
|
||||
void exit(wsrep::thread_service::thread*, void*) WSREP_NOEXCEPT override;
|
||||
int join(wsrep::thread_service::thread*, void**) WSREP_NOEXCEPT override;
|
||||
wsrep::thread_service::thread* self() WSREP_NOEXCEPT override;
|
||||
int setschedparam(wsrep::thread_service::thread*, int,
|
||||
|
Reference in New Issue
Block a user