Loading...
Searching...
No Matches
Execution::Context Struct Reference

Detailed Description

Useful structures when creating the execution elements.

Public Member Functions

auto acquireExecutionQueue () const noexcept
 
auto acquireEditionQueue () const noexcept
 
auto acquireGCQueue () const noexcept
 
std::weak_ptr< const Context > weakSelf () const noexcept
 
std::weak_ptr< Execution::ExecutionCommandQueue > weakExecutionQueue () const noexcept
 
std::weak_ptr< Execution::EditionCommandQueue > weakEditionQueue () const noexcept
 
std::weak_ptr< Execution::GCCommandQueue > weakGCQueue () const noexcept
 
auto & context () const
 
 Context (const Context &)=delete
 
Context & operator= (const Context &)=delete
 
 Context (Context &&)=delete
 
Context & operator= (Context &&)=delete
 

Public Attributes

std::weak_ptr< void > alias
 
const score::DocumentContext & doc
 
const std::atomic_bool & created
 
Execution::time_function time
 
Execution::reverse_time_function reverseTime
 
ExecutionCommandQueue & executionQueue
 
EditionCommandQueue & editionQueue
 
GCCommandQueue & gcQueue
 
SetupContext & setup
 
const std::shared_ptr< ossia::graph_interface > & execGraph
 
const std::shared_ptr< ossia::execution_state > & execState
 
bool retired = false
 

Member Data Documentation

◆ executionQueue

ExecutionCommandQueue& Execution::Context::executionQueue
See also
LiveModification

◆ retired

bool Execution::Context::retired = false

Set when this context's ContextData has been replaced. A replaced ContextData can outlive its replacement: the tick holds a strong reference and audio_engine::sync() does not wait for the audio thread when running() is false. Until it dies it stays subscribed to the cable signal and to every port it bound, over an execution_state whose devices may already be gone, so retired contexts must do nothing.

Declared last: ContextData initialises Context positionally. UI thread only.

◆ time

Execution::time_function Execution::Context::time

Used to map the "high-level" durations in score to low-level durations

For instance, milliseconds to microseconds or milliseconds to samples


The documentation for this struct was generated from the following file: