---
title: "ClikaRT::runtime::StepSlot"
sidebar_label: "StepSlot"
description: "One session's slot within a batched Iterate step. session and priority let a model short of capacity pick which session to set aside without the runtime naming one: the youngest (highest session; ids…"
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/runtime/context.h`

One session's slot within a batched `Iterate` step. [`session`](./StepSlot.md#session) and [`priority`](./StepSlot.md#priority) let a model short of capacity pick which session to set aside without the runtime naming one: the youngest (highest [`session`](./StepSlot.md#session); ids are minted in arrival order) among the lowest [`priority`](./StepSlot.md#priority). See [`Disposition::Preempted`](./index.md#Disposition).

## Data members

### state {#state}

<div class="api-signature">

[`ModelState`](./ModelState.md)`*` **`state`** `= nullptr`

</div>

the session's own state (null for a stateless model)

<div class="api-declared">

Declared in `ClikaRT/runtime/context.h`, line 59

</div>

### session {#session}

<div class="api-signature">

`std::uint64_t` **`session`** `= 0`

</div>

the runtime's session id (arrival order)

<div class="api-declared">

Declared in `ClikaRT/runtime/context.h`, line 60

</div>

### priority {#priority}

<div class="api-signature">

`std::int32_t` **`priority`** `= 0`

</div>

the request's scheduling priority (higher runs sooner)

<div class="api-declared">

Declared in `ClikaRT/runtime/context.h`, line 61

</div>
