Lumiera  0.pre.03
»edit your freedom«
SchedulerFrontend::JobTransaction Class Reference

#include "vault/gear/scheduler-frontend.hpp"

Description

Definition context for jobs to be scheduled.

This builder allows to specify individual jobs, and to attach a transaction for prerequisite jobs. When done, the commit operation can be used to activate all jobs defined this far.

Definition at line 84 of file scheduler-frontend.hpp.

Public Member Functions

JobTransactionaddBackground (Job const &job)
 define a job for background rendering. More...
 
JobTransactionaddFreewheeling (Job const &job)
 define a render job to be calculated as soon as resources permit. More...
 
JobTransactionaddJob (Time deadline, Job const &job)
 define a render job for time-bound calculation
 
JobTransactionattach (JobTransaction const &prerequisites)
 define a set of prerequisites of the current JobTransaction. More...
 
void commit ()
 finish this set of job definitions. More...
 
JobTransaction startPrerequisiteTx ()
 

Friends

class SchedulerFrontend
 

Private Member Functions

 JobTransaction (SchedulerFrontend *s)
 

Private Attributes

SchedulerFrontendsched_
 

Member Function Documentation

◆ commit()

void commit ( )
inline

finish this set of job definitions.

All jobs attached to this transaction thus far, and all dependent transactions will be scheduled

Note
transaction should not be used beyond this point; contents and data structures are cleared right away;

Definition at line 106 of file scheduler-frontend.hpp.

Referenced by SchedulerInterface_test::demonstrate_nested_job_specification().

+ Here is the caller graph for this function:

◆ addBackground()

JobTransaction& addBackground ( Job const &  job)
inline

define a job for background rendering.

Definition at line 122 of file scheduler-frontend.hpp.

◆ addFreewheeling()

JobTransaction& addFreewheeling ( Job const &  job)
inline

define a render job to be calculated as soon as resources permit.

Typically this call is used for rendering final results.

Definition at line 133 of file scheduler-frontend.hpp.

◆ attach()

JobTransaction& attach ( JobTransaction const &  prerequisites)
inline

define a set of prerequisites of the current JobTransaction.

Parameters
prerequisitesa set of job definitions, which need to be executed successfully before any job of the current JobTransaction may be invoked.
Note
prerequisites may be nested recursively, a prerequisite transaction might rely on further prerequisites

Definition at line 148 of file scheduler-frontend.hpp.

+ Collaboration diagram for SchedulerFrontend::JobTransaction:

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