On Thu, Nov 10, 2016 at 3:13 PM, Malcolm Pirie <[email protected]> wrote:
> I have server process that is accepting messages over the network and
> writing the information to an SQLite database. Because the database access
> is slowing down the main loop thread, I have moved the database processing
> into another long running thread and am using a mutex/condvar protected
> queue to pass over the messages. This is all working.
>
> After queuing the last message, the main loop thread waits, using
> uv_thread_join, for the database thread to completed. Roughly four times out
> of fives, the uv_thread_join never returns and the main loop thread hangs.
>
> My diagnostics show that there is no apparent difference in flow between a
> successful and a failing run.
>
> Any suggestions?
>
> Mal

Do you destroy the mutex or condition variable before joining?  Try
building with ThreadSanitizer (-fsanitize=thread) and see if it
complains.

-- 
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