diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-27 08:09:10 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-05 17:38:31 +0100 |
commit | 2daf9448b127f2849de735a76ff4f9a95184d64f (patch) | |
tree | 45ed0b700531c231e6e6adde91f934df841a451a /docs/src | |
parent | 0bcac64512d937d8fe8dbb7c51f7ce0e230c6898 (diff) | |
download | libuv-2daf9448b127f2849de735a76ff4f9a95184d64f.tar.gz libuv-2daf9448b127f2849de735a76ff4f9a95184d64f.zip |
unix: add flag for blocking SIGPROF during poll
Add a per-event loop flag for blocking SIGPROF signals when polling for
events.
The motivation for this addition is to reduce the number of wakeups and
subsequent clock_gettime() system calls when using a sampling profiler.
On Linux, this switches from epoll_wait() to epoll_pwait() when enabled.
Other platforms bracket the poll syscall with pthread_sigmask() calls.
Refs strongloop/strong-agent#3 and strongloop-internal/scrum-cs#37.
PR-URL: https://github.com/libuv/libuv/pull/15
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions