mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-08-30 04:15:10 +00:00
connection between 2 systems and bug fixes (#14)
This commit is contained in:
@@ -64,7 +64,7 @@ bool CCANSockets::OnInitialize()
|
||||
}
|
||||
|
||||
LogConfigurations();
|
||||
m_threadReceive = std::thread(&CCANSockets::ReceiveThreadFunc, this);
|
||||
m_threadReceive = sdv::core::secure_thread(&CCANSockets::ReceiveThreadFunc, this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ private:
|
||||
std::string name; ///< interface name, can be empty in case of an invalid socket element
|
||||
};
|
||||
|
||||
std::thread m_threadReceive; ///< Receive thread.
|
||||
sdv::core::secure_thread m_threadReceive; ///< Receive thread.
|
||||
mutable std::mutex m_mtxReceivers; ///< Protect the receiver set.
|
||||
std::set<sdv::can::IReceive*> m_setReceivers; ///< Set with receiver interfaces.
|
||||
mutable std::mutex m_mtxSockets; ///< Protect the socket list.
|
||||
|
||||
Reference in New Issue
Block a user