Skip to content

Commit

Permalink
issue #37
Browse files Browse the repository at this point in the history
  • Loading branch information
leafqycc authored Apr 9, 2024
1 parent c385d9d commit d86b5a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/rknnPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ int rknnPool<rknnModel, inputType, outputType>::getModelId()
template <typename rknnModel, typename inputType, typename outputType>
int rknnPool<rknnModel, inputType, outputType>::put(inputType inputData)
{
std::lock_guard<std::mutex> lock(queueMtx);
futs.push(pool->submit(&rknnModel::infer, models[this->getModelId()], inputData));
return 0;
}
Expand All @@ -105,4 +106,4 @@ rknnPool<rknnModel, inputType, outputType>::~rknnPool()
}
}

#endif
#endif

0 comments on commit d86b5a9

Please sign in to comment.