移除重复的锁

streaming
Matthew 4 months ago
parent cff24f65ae
commit 97eb35e169

@ -39,8 +39,6 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
int fd = -1;
time_t now = time(NULL);
m_locker.lock();
// check res???
for (it = m_items.begin(); it != m_items.end(); ++it)
{
@ -63,7 +61,6 @@ size_t GpioControl::turnOnImpl(const IOT_PARAM& param)
m_items.push_back(item);
SetCamerastatus(param.cmd, true);
}
m_locker.unlock();
if (oldRef == 0)
{

Loading…
Cancel
Save