13
0

move TransportFSM::enqueue() into .cc file

This commit is contained in:
Paul Davis 2019-09-20 12:17:22 -06:00
parent b04788407a
commit 84f8e23027
2 changed files with 12 additions and 6 deletions

View File

@ -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:

View File

@ -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 ();
}
}