diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-04 22:38:41 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-06-22 10:48:38 +1000 |
commit | f59771142807601e0a78e268c48765333b83713b (patch) | |
tree | 7ad8869358e8bbe20dd0b693a1bf66724f72af26 /libs/ardour/session_transport.cc | |
parent | 5c5cfac4a3c6fcb1e901a354838ca1aab7f75ce6 (diff) |
Remove LocaleGuards from ARDOUR::Session transport related methods
ARDOUR::AutomationList is no longer using LocaleGuards as float <=> string
conversion is using PBD::to_string/string_to so the reason for adding these
guards as per comment no longer applies.
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 65a9748ce6..8eb25bfbd8 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -444,12 +444,6 @@ Session::butler_transport_work () } if (ptw & PostTransportAdjustPlaybackBuffering) { - /* non_realtime_locate() calls Automatable::transport_located() - * for every route. This eventually calls - * ARDOUR::AutomationList::state () which has a LocaleGuard, - * and would switch locales forth/back every time. - */ - LocaleGuard lg; for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i); if (tr) { @@ -498,7 +492,6 @@ Session::butler_transport_work () /* don't seek if locate will take care of that in non_realtime_stop() */ if (!(ptw & PostTransportLocate)) { - LocaleGuard lg; // see note for non_realtime_locate() above for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { (*i)->non_realtime_locate (_transport_frame); @@ -608,7 +601,6 @@ Session::non_realtime_locate () { - LocaleGuard lg; // see note for non_realtime_locate() above boost::shared_ptr<RouteList> rl = routes.reader(); for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) { (*i)->non_realtime_locate (_transport_frame); @@ -875,7 +867,6 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) /* this for() block can be put inside the previous if() and has the effect of ... ??? what */ { - LocaleGuard lg; // see note for non_realtime_locate() above DEBUG_TRACE (DEBUG::Transport, X_("Butler PTW: locate\n")); for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { DEBUG_TRACE (DEBUG::Transport, string_compose ("Butler PTW: locate on %1\n", (*i)->name())); |