| 37 | } |
| 38 | |
| 39 | EXPORT_C_FUNC XResult GetOverrideCommandQueue(int32_t queue_idx, cl_command_queue *cmdq) |
| 40 | { |
| 41 | if (cmdq == nullptr || queue_idx < 0) return kXSchedErrorInvalidValue; |
| 42 | std::lock_guard<std::mutex> lock(g_cmdq_mtx); |
| 43 | auto it = g_cmdqs.find(queue_idx); |
| 44 | if (it == g_cmdqs.end()) return kXSchedErrorNotFound; |
| 45 | *cmdq = it->second; |
| 46 | return kXSchedSuccess; |
| 47 | } |
| 48 | |
| 49 | EXPORT_C_FUNC XResult DeleteOverrideCommandQueue(int32_t queue_idx) |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected