删除control_fetch中的锁,该函数在外部用锁
This commit is contained in:
parent
9f312279d0
commit
4c68058f75
|
@ -229,8 +229,6 @@ std::string hg_scanner_302::control_fetch(int addr, int val, int size)
|
|||
ret = write_register(addr, val);
|
||||
if (ret == SCANNER_ERR_OK)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(io_lock_);
|
||||
|
||||
l = size + 1;
|
||||
data.resize(size + 2);
|
||||
bzero(&data[0], size + 2);
|
||||
|
|
Loading…
Reference in New Issue