Best practices for using te::TransportControl::ReallocationInhibitor

Hey Dave! It was great to see you at ADC this week! Your TSan recommendation was a great one since it’s turned up problems exactly where we’ve been hitting issues :tada:

It seems that there’s a race condition in the juce::CachedValue<bool> at te::Plugin::enabled. Do you think that there’s something that we might be doing wrong here?

Would be great to get your feedback on this one.

Best,

Jamie

Edit: looks like we might need to implement some kind of thread-safe reader from the cached value like isk mentioned in this thread? Thread Safe CachedValue<> for Reading on other threads