iree/hal/local/task_queue.c
// Cleanup for iree_hal_task_queue_issue_cmd_t that resets the queue state
// tracking the last in-flight issue.
Cleanup for iree_hal_task_queue_issue_cmd_t that resets the queue state
tracking the last in-flight issue.
Cleanup for iree_hal_task_queue_issue_cmd_t that resets the queue state tracking the last in - flight issue .
static void iree_hal_task_queue_issue_cmd_cleanup(iree_task_t* task,
                                                  iree_status_t status) {
  iree_hal_task_queue_issue_cmd_t* cmd = (iree_hal_task_queue_issue_cmd_t*)task;
  iree_slim_mutex_lock(&cmd->queue->mutex);
  if (cmd->queue->tail_issue_task == task) {
    cmd->queue->tail_issue_task = NULL;
  }
  iree_slim_mutex_unlock(&cmd->queue->mutex);
}
static void iree_hal_task_queue_issue_cmd_cleanup ( iree_task_t * task , iree_status_t status ) { iree_hal_task_queue_issue_cmd_t * cmd = ( iree_hal_task_queue_issue_cmd_t * ) task ; iree_slim_mutex_lock ( & cmd -> queue -> mutex ) ; if ( cmd -> queue -> tail_issue_task == task ) { cmd -> queue -> tail_issue_task = NULL ; } iree_slim_mutex_unlock ( & cmd -> queue -> mutex ) ; }
Cleanup for iree_hal_task_queue_issue_cmd_t that resets the queue state
tracking the last in-flight issue.
Cleanup for iree_hal_task_queue_issue_cmd_t that resets the queue state tracking the last in - flight issue .
// Reset queue tail issue task if it was us.