mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
smartools: add destructor to call ThreadLoop::join()
Change-Id: I31c5103f78fa2516eff930ed874856589206b9c7
This commit is contained in:
@ -39,6 +39,11 @@ Smartools::Smartools()
|
||||
: loop_([this] { return true; }, [this] { process(); }, [] {})
|
||||
{}
|
||||
|
||||
Smartools::~Smartools()
|
||||
{
|
||||
loop_.join();
|
||||
}
|
||||
|
||||
void
|
||||
Smartools::sendInfo()
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ class Smartools
|
||||
|
||||
private:
|
||||
Smartools();
|
||||
~Smartools();
|
||||
void process();
|
||||
std::map<std::string, std::string> information_;
|
||||
std::mutex mutexInfo_; // Protect information_ from multithreading
|
||||
|
Reference in New Issue
Block a user