-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/17/2014 03:14 PM, Thiago Padilha wrote: > If it's ok with libuv maintainers, I'd like to send a PR with two > functions providing a simple way to control the sigmask for the > current thread, `uv_thread_block_signals` and > `uv_thread_unblock_signals`. These are useful for when you want to > handle signals in a loop running in a background thread. >
I wouldn't be against it, but I'd rather have a single function taking a boolean argument. > I'm not sure of how these would be implemented on windows > though.(not even sure if windows has the concept of signals or > sigmask) > On Windows signals are emulated, so the function could just do nothing, I think. Cheers, - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTJw7tAAoJEEEOVVOum8BZulMP/jWRaudhf2KK+1ejzHQl/DkW 9V/8ugoNp93wTCruFE633WxEUPbWdT/DQSM/KmV431c5njyjdXSzY9/lAGzfCb/b DJUhAk4fzqCEEAZxsD+ZYu3yKFLu2cu0to87kwKhz8lWtaHJmp1vwGh2LuCdtdLN hoZMTb89P0Ee/YgbTGrfIOrvxxnCxO08fJSDl1qNZBgkEanMUOETNNxIWOO0kR29 6XiTGm+mzISGZ94fE+OTiiLdl+e7Dw1mkP4jbA0AMBmgJvxfDuG0oPl/FQvbWnSW MBuSljiTxi50gkYxWX3W8zlO7h0HsTbj/B7kw4hR4cbO4wDbYlLq0wqSV5Jddj87 +3JQ/Rkj6Bqd3Wegl65vot+gbS8vKt7YO8vp+ZZ0BVv1oneUvEf9IJnUWM6BWC+Z iUMZn6HwfdYdKdEsPaEoed1/XMjVTgwed7z5yX7uFrQsrZT73jM5kepQM0n7qbXW mocJwifrmD98T+xb1Shvx5lWaI0JQZmA+/2+6i7Wg53W+XTJ4zhjMtO5t/p3w+Mj JBbCwnGP3X4lngdyAz8N4PulZPRE/XmTW0bEYrPcuvvB8eKrg0u4s+KH70OsTC+L bPdBQO6QVZIB7heR0G1jZuHanAFUsQz90nVeXbzEizpxEaY6rGVTMovgjQh6zRTW fiG5q0JvkdDWByC5beDh =WyX9 -----END PGP SIGNATURE----- -- 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.
