You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unreachable code in dai::DataOutputQueue::get() -- the intention is unclear. Needs a review.
On line 175-6, do you want to throw, or return nullptr. Can't do both.
return nullptr is redundant in this case - the underlying queue was destructed in this case.
If the underlying queue was destructed, then the caller is given the reason why and gets out of the blocked call.
diablodale
added a commit
to diablodale/depthai-core
that referenced
this issue
Jan 16, 2022
Unreachable code in
dai::DataOutputQueue::get()
-- the intention is unclear. Needs a review.On line 175-6, do you want to throw, or return nullptr. Can't do both.
depthai-core/include/depthai/device/DataQueue.hpp
Lines 171 to 179 in efa3deb
Setup
Repro
MSVC compiler told me it is unreachable.
Verified by code review. It is unreachable.
Result
The code will throw. But it is unclear if that is the dev's intention.
Expected
Code matches dev's intention.
The text was updated successfully, but these errors were encountered: