13
0

switch to a more efficient implementation of Processor::check_active()

This commit is contained in:
Paul Davis 2021-12-01 13:25:47 -07:00
parent 786388b5b6
commit ebc5195490
2 changed files with 1 additions and 16 deletions

View File

@ -161,7 +161,7 @@ protected:
virtual XMLNode& state ();
virtual int set_state_2X (const XMLNode&, int version);
bool check_active ();
bool check_active () { return (_active = _pending_active); }
bool map_loop_range (samplepos_t& start, samplepos_t& end) const;
int _pending_active;

View File

@ -332,18 +332,3 @@ Processor::owner() const
{
return _owner;
}
bool
Processor::check_active ()
{
if (_active) {
if (!_pending_active) {
_active = false;
}
} else {
if (_pending_active) {
_active = true;
}
}
return _active;
}