# AttachedControlBase uses triggerAsyncUpdate?

**URL:** <https://forum.juce.com/t/attachedcontrolbase-uses-triggerasyncupdate/32995>\
**Category:** General JUCE discussion\
**Created:** [April 23, 2019, 8:14am UTC](https://forum.juce.com/t/attachedcontrolbase-uses-triggerasyncupdate/32995 "2019-04-23T08:14:50Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [February 6, 2020, 12:00pm UTC](https://forum.juce.com/t/attachedcontrolbase-uses-triggerasyncupdate/32995/11 "2020-02-06T12:00:46Z")

</div>

Here you go:  
[https://forum.juce.com/t/calling-triggerasyncupdate-from-audiodeviceiocallback/8847](https://forum.juce.com/t/calling-triggerasyncupdate-from-audiodeviceiocallback/8847)

> [@AsyncUpdater which don't malloc](https://forum.juce.com/t/asyncupdater-which-dont-malloc/3324/9):
>
> Really? In Win32 case: //============================================================================== bool MessageManager::callFunctionOnMessageThreadAsynchronously (MessageCallbackFunction\* callback, void\* userData) { if (MessageManager::getInstance()-\>isThisTheMessageThread()) { // Don't care about return value in this case (void)(\*callback) (userData); return true; } else { // No deadloc…

> [@Debugging audio pops and clicks](https://forum.juce.com/t/debugging-audio-pops-and-clicks/12511/10):
>
> Yeah DPC is a tough one. You can't do much about it ... &nbsp; For those interested in the solution of this particular problem The problem was due to the use of an AsyncUpdater . The audio thread would call triggerAsyncUpdate and that caused occasional pops. I solved this by removing the triggerAsyncUpdate and replacing with a Timer and a timerCallback. Now everything works like a charm. I guess we should avoid using AsyncUpdaters in the audio thread...

---

_[View the full topic](https://forum.juce.com/t/attachedcontrolbase-uses-triggerasyncupdate/32995)._
