ext/iodine/redis_engine.c
/* attach a command to the queue */
attach a command to the queue
attach a command to the queue
static void redis_attach_cmd(redis_engine_s *r, redis_commands_s *cmd) {
  fio_lock(&r->lock);
  fio_ls_embd_push(&r->queue, &cmd->node);
  redis_send_next_command_unsafe(r);
  fio_unlock(&r->lock);
}
static void redis_attach_cmd ( redis_engine_s * r , redis_commands_s * cmd ) { fio_lock ( & r -> lock ) ; fio_ls_embd_push ( & r -> queue , & cmd -> node ) ; redis_send_next_command_unsafe ( r ) ; fio_unlock ( & r -> lock ) ; }
attach a command to the queue
attach a command to the queue