Return early if processing is blocked

There is no need to setup thread-local variable
if they are never used.
This commit is contained in:
Robin Gareus 2022-02-01 21:39:55 +01:00
parent 2eaa0183ef
commit 031a05b07a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -85,17 +85,17 @@ Session::process (pframes_t nframes)
{
TimerRAII tr (dsp_stats[OverallProcess]);
samplepos_t transport_at_start = _transport_sample;
setup_thread_local_variables ();
_silent = false;
if (processing_blocked()) {
_silent = true;
return;
} else {
_silent = false;
}
samplepos_t transport_at_start = _transport_sample;
setup_thread_local_variables ();
if (non_realtime_work_pending()) {
DEBUG_TRACE (DEBUG::Butler, string_compose ("non-realtime work pending: %1 (%2%3%4)\n", enum_2_string (post_transport_work()), std::hex, post_transport_work(), std::dec));
if (!_butler->transport_work_requested ()) {