mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-13 23:26:16 +00:00
hidraw support for udev; fix race condition
This commit is contained in:
@@ -341,9 +341,13 @@ public:
|
||||
: m_token(token),
|
||||
m_devImp(devImp),
|
||||
m_devPath(token.getDevicePath())
|
||||
{
|
||||
}
|
||||
|
||||
void _startThread()
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(m_initMutex);
|
||||
DeviceType dType = token.getDeviceType();
|
||||
DeviceType dType = m_token.getDeviceType();
|
||||
if (dType == DeviceType::USB)
|
||||
m_thread = std::thread(_threadProcUSBLL, this);
|
||||
else if (dType == DeviceType::Bluetooth)
|
||||
|
||||
Reference in New Issue
Block a user