# Built in way of determining if you're on the message thread?

**URL:** <https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500>\
**Category:** General JUCE discussion\
**Created:** [May 18, 2017, 8:16pm UTC](https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500 "2017-05-18T20:16:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [May 18, 2017, 8:16pm UTC](https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500/1 "2017-05-18T20:16:59Z")

</div>

Hi, is there anything in the API to test this so that it’s safe to call GUI update functions?

thx

---

<div class="post-metadata">

**Author:** ![xenakios](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/xenakios/32/4047_2.png) [@xenakios](https://forum.juce.com/u/xenakios)\
**Post date:** [May 18, 2017, 8:20pm UTC](https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500/2 "2017-05-18T20:20:46Z")

</div>

MessageManager::getInstance()-\>isThisTheMessageThread()

---

<div class="post-metadata">

**Author:** ![matkatmusic](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@matkatmusic](https://forum.juce.com/u/matkatmusic)\
**Post date:** [May 18, 2017, 8:20pm UTC](https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500/3 "2017-05-18T20:20:47Z")

</div>

yes: bool MessageManager::isThisTheMessageThread ( ) const

---

<div class="post-metadata">

**Author:** ![leehu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/leehu/32/3280_2.png) [@leehu](https://forum.juce.com/u/leehu)\
**Post date:** [May 18, 2017, 8:21pm UTC](https://forum.juce.com/t/built-in-way-of-determining-if-youre-on-the-message-thread/22500/4 "2017-05-18T20:21:14Z")

</div>

lovely - thanks for the quick reply…
