| 408 | } |
| 409 | |
| 410 | nvimgcodecStatus_t wait(int device_id) { |
| 411 | assert(tp_); |
| 412 | tp_->WaitForWork(); |
| 413 | return NVIMGCODEC_STATUS_SUCCESS; |
| 414 | } |
| 415 | |
| 416 | int get_num_threads() const { |
| 417 | // For the host backend, the thread pool is not available until we see the first batch. |