> On Jun 13, 2017, at 08:31, Super Twang <[email protected]> wrote:
> 
> 
> I've got a thread in which I'm waiting for MIDI messages, gathering them into 
> a thread-safe queue and then trying to trigger an async callback on the main 
> loop, but my callback never seems to fire.
> 
> 
> Here's my callback:
> 
> void dataReadyCb( uv_async_t *hdl )
> {
>   assert(0);
>   assert(hdl);
>   assert(hdl->data);
> 
>   pxEvThMidiIn *handler = static_cast<pxEvThMidiIn*>(hdl->data);
>   handler->processIncomingMidi();
> }
> 
> 
> Initializer in the main loop:
> 
> uv_async_t myHdl;
> 
> uv_async_init( uv_default_loop(), &myHdl, dataReadyCb );
> 
> 
> Then the thread starts...
> 
> and I call:  
> 
> sendData()
> {
> 

I assume there is an uv_async_send missing here :-)

Silly question, but is the main loop thread running uv_run ?

--
Saúl

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to