From 84f8e2302722f27521bab8f9cf999099a6755ff3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 20 Sep 2019 12:17:22 -0600 Subject: [PATCH] move TransportFSM::enqueue() into .cc file --- libs/ardour/ardour/transport_fsm.h | 7 +------ libs/ardour/transport_fsm.cc | 11 +++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libs/ardour/ardour/transport_fsm.h b/libs/ardour/ardour/transport_fsm.h index 5a08e621d7..a939b3395b 100644 --- a/libs/ardour/ardour/transport_fsm.h +++ b/libs/ardour/ardour/transport_fsm.h @@ -149,12 +149,7 @@ struct TransportFSM bool waiting_for_butler() const { return _butler_state == WaitingForButler; } bool declick_in_progress() const { return _motion_state == DeclickToLocate || _motion_state == DeclickToStop; } - void enqueue (Event* ev) { - queued_events.push_back (*ev); - if (!processing) { - process_events (); - } - } + void enqueue (Event* ev); private: diff --git a/libs/ardour/transport_fsm.cc b/libs/ardour/transport_fsm.cc index c9ae1153fa..02faafef9b 100644 --- a/libs/ardour/transport_fsm.cc +++ b/libs/ardour/transport_fsm.cc @@ -396,3 +396,14 @@ TransportFSM::transition (ButlerState bs) DEBUG_TRACE (DEBUG::TFSMState, string_compose ("Leave %1, enter %2\n", enum_2_string (_butler_state), enum_2_string (bs))); _butler_state = bs; } + +void +TransportFSM::enqueue (Event* ev) +{ + DEBUG_TRACE (DEBUG::TFSMState, string_compose ("queue tfsm event %1\n", enum_2_string (ev->type))); + PBD::stacktrace (std::cerr, 30); + queued_events.push_back (*ev); + if (!processing) { + process_events (); + } +}