# WaitableEvent Optim

**URL:** <https://forum.juce.com/t/waitableevent-optim/11744>\
**Category:** MacOSX and iOS\
**Created:** [October 28, 2013, 5:08pm UTC](https://forum.juce.com/t/waitableevent-optim/11744 "2013-10-28T17:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)\
**Post date:** [October 28, 2013, 5:08pm UTC](https://forum.juce.com/t/waitableevent-optim/11744/1 "2013-10-28T17:08:49Z")

</div>

Hi Jules,

&nbsp;

Would it be possible to check for triggered value in WaitableEvent::signal in order to not send unecessary pthread\_cond\_broadcast ?

Thanks !

&nbsp;

---

<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 28, 2013, 6:35pm UTC](https://forum.juce.com/t/waitableevent-optim/11744/2 "2013-10-28T18:35:31Z")

</div>

Hmm.. Yes, that probably would work, thanks!
