Leosac  0.8.0
Open Source Access Control
Leosac::Module::Wiegand::WSHelperThread Class Reference

#include <WSHelperThread.hpp>

+ Inheritance diagram for Leosac::Module::Wiegand::WSHelperThread:
+ Collaboration diagram for Leosac::Module::Wiegand::WSHelperThread:

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 &param)
 
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::Serviceservice_ptr_
 

Detailed Description

Definition at line 30 of file WSHelperThread.hpp.

Constructor & Destructor Documentation

◆ WSHelperThread()

Leosac::Module::Wiegand::WSHelperThread::WSHelperThread ( const CoreUtilsPtr core_utils)
explicit

Definition at line 32 of file WSHelperThread.cpp.

Member Function Documentation

◆ register_ws_handlers()

void Leosac::Module::Wiegand::WSHelperThread::register_ws_handlers ( WebSockAPI::Service ws_service)
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.

◆ unregister_ws_handlers()

void Leosac::Module::Wiegand::WSHelperThread::unregister_ws_handlers ( WebSockAPI::Service ws_service)
overridevirtual

The documentation for this class was generated from the following files: