Leosac
0.8.0
Open Source Access Control
|
#include <WSHelperThread.hpp>
Public Member Functions | |
WSHelperThread (const CoreUtilsPtr &core_utils) | |
void | unregister_ws_handlers (WebSockAPI::Service &ws_service) override |
Public Member Functions inherited from Leosac::Module::WebSockAPI::BaseModuleSupportThread< int > | |
BaseModuleSupportThread (const CoreUtilsPtr &core_utils, const int ¶m) | |
virtual | ~BaseModuleSupportThread () |
void | start_running () |
Effectively starts an helper thread and run its io_service. More... | |
void | set_parameter (const int &p) |
Private Member Functions | |
void | register_ws_handlers (WebSockAPI::Service &ws_service) override |
Called when websocket handler registration is possible. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Leosac::Module::WebSockAPI::BaseModuleSupportThread< int > | |
CoreUtilsPtr | core_utils_ |
bs2::scoped_connection | service_event_listener_ |
std::unique_ptr< std::thread > | thread_ |
boost::asio::io_service | io_ |
std::unique_ptr< boost::asio::io_service::work > | work_ |
int | parameters_ |
std::mutex | mutex_ |
std::shared_ptr< WebSockAPI::Service > | service_ptr_ |
Definition at line 30 of file WSHelperThread.hpp.
|
explicit |
Definition at line 32 of file WSHelperThread.cpp.
|
overrideprivatevirtual |
Called when websocket handler registration is possible.
This function is called with the internal mutex locked, to prevent conflict with a call to set_parameters()
.
Implements Leosac::Module::WebSockAPI::BaseModuleSupportThread< int >.
Definition at line 45 of file WSHelperThread.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::BaseModuleSupportThread< int >.
Definition at line 37 of file WSHelperThread.cpp.