Hi all,
I'm making some "re-design" stuff within my architecture on IPlug.
There are some important decisional aspects that I need to cover before switch.
One of the most important is:
Code:
// Implementations should set a mutex lock like in the no-op!
virtual void OnParamChange(int paramIdx) { IMutexLock lock(this); }
Why? Really, I miss why I should do this.
Analyzing the code, I catch which functions call that OnParamChange:
SetParameterFromGUI (which already lock)
OnParamReset (who call this function, is already locked)
VSTDispatcher (which already lock)
VSTSetParameter (which already lock)
So I don't see any reason why one should lock OnParamChange.
What am I missing? Why did you write that when developing it?
This has already be discussed by me and
earlevel.
Can you give to us a valid motive? Oliver?
So I can get rid of it within OnParamChange
Thanks