Skip to content

Commit

Permalink
[exec] allow to choose commit algorithm in execution_state
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 11, 2023
1 parent d874640 commit 3adabff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/libossia
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ void Clock::play_impl(const TimeVal& t)
opt.commit = ossia::tick_setup_options::Priorized;
else if(commit == Execution::Settings::CommitPolicies{}.Merged)
opt.commit = ossia::tick_setup_options::Merged;
else if(commit == Execution::Settings::CommitPolicies{}.MergedThreaded)
opt.commit = ossia::tick_setup_options::MergedThreaded;
else if(commit == Execution::Settings::CommitPolicies{}.DirectThreaded)
opt.commit = ossia::tick_setup_options::DirectThreaded;

if(m_plug.settings.getBench() && m_plug.contextData()->bench)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ struct CommitPolicies
const QString Ordered{"Ordered"};
const QString Priorized{"Priorized"};
const QString Merged{"Merged"};
operator QStringList() const { return {Default, Ordered, Priorized, Merged}; }
const QString MergedThreaded{"MergedThreaded"};
const QString DirectThreaded{"DirectThreaded"};
operator QStringList() const
{
return {Default, Ordered, Priorized, Merged, MergedThreaded, DirectThreaded};
}
};
struct TickPolicies
{
Expand Down

0 comments on commit 3adabff

Please sign in to comment.