Skip to main content

struct batch

Declaration

struct batch { /* full declaration omitted */ };

Description

We submit the set of instructions and pilots generated within a call to compile() en-bloc to relieve contention on the executor queue lock. To collect all instructions that are generated in the call stack without polluting internal state, we pass a batch & output parameter to any function that transitively generates instructions or pilots.

Member Variables

std::vector<const instruction*> generated_instructions
std::vector<outbound_pilot> generated_pilots
int base_priority = 0
The base priority of a batch adds to the priority per instruction type to transitively prioritize dependencies of important instructions.