Fix build and pvs warning.

This commit is contained in:
Nikolai Kochetov 2021-10-28 20:41:20 +03:00
parent 638b8b5ea8
commit 6914efe2db
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,6 @@ if (NOT EXTERNAL_BOOST_FOUND)
set (SRCS_THREAD
"${LIBRARY_DIR}/libs/thread/src/future.cpp"
"${LIBRARY_DIR}/libs/thread/src/tss_null.cpp"
"${LIBRARY_DIR}/libs/thread/src/pthread/once_atomic.cpp"
"${LIBRARY_DIR}/libs/thread/src/pthread/once.cpp"
"${LIBRARY_DIR}/libs/thread/src/pthread/thread.cpp"
)

View File

@ -166,7 +166,8 @@ bool PipelineExecutor::prepareProcessor(UInt64 pid, Queue & queue, Queue & async
graph->nodes[edge->to]->processor->onUpdatePorts();
}
}
else
if (!updated_processors.empty())
{
pid = updated_processors.top();
updated_processors.pop();