analogdevicesinc / aditof_sdk

Analog Devices 3D ToF software suite
https://analogdevicesinc.github.io/aditof_sdk/
BSD 3-Clause "New" or "Revised" License
72 stars 49 forks source link

Changed m_mutex from simple mutex to recursive_mutex #761

Closed tmanalog closed 2 years ago

tmanalog commented 2 years ago

Signed-off-by: Timotei Molcut timotei.molcut@analog.com

dNechita commented 2 years ago

Can you please describe why this change is needed?

tmanalog commented 2 years ago

This change is needed because the mutex is acquired multiple times by the same thread. In order to support this functionality, the mutex must be recursive.