# Is MidiOutput::sendMessageNow thread safe?

**URL:** <https://forum.juce.com/t/is-midioutput-sendmessagenow-thread-safe/9436>\
**Category:** General JUCE discussion\
**Created:** [October 21, 2012, 3:34pm UTC](https://forum.juce.com/t/is-midioutput-sendmessagenow-thread-safe/9436 "2012-10-21T15:34:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OBO](https://avatars.discourse-cdn.com/v4/letter/o/ba8739/32.png) [@OBO](https://forum.juce.com/u/OBO)\
**Post date:** [October 21, 2012, 3:34pm UTC](https://forum.juce.com/t/is-midioutput-sendmessagenow-thread-safe/9436/1 "2012-10-21T15:34:27Z")

</div>

Is MidiOutput::sendMessageNow thread safe on all platforms?  
If not, should i call it only on the main thread or only on the audio thread?

Please mention in the docs.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 21, 2012, 6:34pm UTC](https://forum.juce.com/t/is-midioutput-sendmessagenow-thread-safe/9436/2 "2012-10-21T18:34:14Z")

</div>

Yes, it’s thread-safe. The midi output doesn’t have anything to do with audio i/o, so whether or not you’re using the audio thread makes no difference.
