move TransportFSM::enqueue() into .cc file
This commit is contained in:
parent
b04788407a
commit
84f8e23027
@ -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:
|
||||
|
||||
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user