2014-05-25 23:43 GMT+02:00 Iñaki Baz Castillo <[email protected]>: >> Do your other threads also have libuv loops? In that case it would be >> easier to just add a dummy signal handle for SIGUSR1 everywhere. I >> think you should be fine though. > > Yes, but I have already working the pthread_sigmask stuff, which is > cheaper than a fake signal handler :)
Said that, your proposal does not convince me. When my software receives a USR1 signal I want it to be *always* delivered to thread-A (yes, there are a UV loop in each thread), and for that AFAIK the only way is to block that signal in all the other threads (with pthread_sigmask). If I install a dummy USR1 handler in the other threads, it may happen that a USR1 arrives and it is delivered to thread-B so it gets ignored by its dummy handler. I don't want that. -- Iñaki Baz Castillo <[email protected]> -- 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 http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
