switch to a more efficient implementation of Processor::check_active()
This commit is contained in:
parent
786388b5b6
commit
ebc5195490
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user