MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ try_resume()

bool MayaFlux::Vruta::GraphicsRoutine::try_resume ( uint64_t  current_context)
overridevirtual

Attempts to resume the coroutine if it's ready to execute.

Parameters
current_sampleCurrent sample position in the timeline
Returns
True if the coroutine was resumed, false otherwise

This method checks if the current sample position has reached or passed the coroutine's next execution time. If so, it resumes the coroutine, allowing it to execute until its next suspension point or completion.

Implements MayaFlux::Vruta::Routine.

Definition at line 347 of file Routine.cpp.

348{
349 // Default to FRAME_BASED context for backwards compatibility
350 // Note: You'll need to add FRAME_BASED to the DelayContext enum
351 return try_resume_with_context(current_context, DelayContext::FRAME_BASED);
352}
bool try_resume_with_context(uint64_t current_value, DelayContext context) override
Attempts to resume the coroutine with explicit temporal context.
Definition Routine.cpp:298
@ FRAME_BASED
Frame-rate delay (Graphics domain)

References MayaFlux::Vruta::FRAME_BASED, and try_resume_with_context().

+ Here is the call graph for this function: