| 47 | } |
| 48 | |
| 49 | EXPORT_C_FUNC XResult DeleteOverrideCommandQueue(int32_t queue_idx) |
| 50 | { |
| 51 | std::lock_guard<std::mutex> lock(g_cmdq_mtx); |
| 52 | auto it = g_cmdqs.find(queue_idx); |
| 53 | if (it == g_cmdqs.end()) return kXSchedErrorNotFound; |
| 54 | // Release the command queue to allow being deleted by the driver. |
| 55 | OCL_ASSERT(Driver::ReleaseCommandQueue(it->second)); |
| 56 | g_cmdqs.erase(it); |
| 57 | return kXSchedSuccess; |
| 58 | } |
| 59 | |
| 60 | namespace xsched::opencl |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected