kpu add mutex

fix/double
xiangbingj 2019-03-08 17:28:15 +08:00 committed by GitHub
parent 79da3b13fe
commit 799e172ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ public:
virtual int get_output(handle_t context, uint32_t index, uint8_t **data, size_t *size) override
{
COMMON_ENTRY;
auto model_context = system_handle_to_object(context).as<k_model_context>();
model_context->get(&ctx_);
if (index >= ctx_.output_count)