| 503 | } |
| 504 | |
| 505 | int GraphExecutor::GetExecStatus(void) |
| 506 | { |
| 507 | const exec_status_t& ret = exec_engine_->GetStatus(exec_handle_); |
| 508 | |
| 509 | int code = exec_engine_->GetStatusCode(ret); |
| 510 | |
| 511 | if(code < 0) |
| 512 | { |
| 513 | set_tengine_errno(EFAULT); |
| 514 | return -1; |
| 515 | } |
| 516 | |
| 517 | return MapExecStatus(code); |
| 518 | } |
| 519 | |
| 520 | bool GraphExecutor::SetEventHook(int event, event_handler_t cb_func, void* cb_arg) |
| 521 | { |
no test coverage detected