We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38cbd9a + 776e58a commit 17d0aafCopy full SHA for 17d0aaf
1 file changed
host/core/pipeline/host_pipeline.cpp
@@ -47,11 +47,10 @@ void HostPipeline::onNewData(
47
info.elem_size
48
));
49
50
+ std::unique_lock<std::mutex> guard(q_lock);
51
if (!_data_queue_lf.push(host_data))
52
{
- std::unique_lock<std::mutex> guard(q_lock);
53
_data_queue_lf.pop();
54
- guard.unlock();
55
56
57
std::cerr << "Data queue is full " << info.name << ":\n";
0 commit comments