diff options
author | Louis DeJardin <lodejard@microsoft.com> | 2015-10-28 11:40:51 -0700 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2015-11-06 09:33:15 +0100 |
commit | dfdecf000622ea4dc9eec24be8f0cae99c0469cd (patch) | |
tree | ae658a9511847a2bba039e4d2397007141e8d676 /docs/src | |
parent | a6da5d7d6557fdfbb6887384b6119ef7e43f2d3f (diff) | |
download | libuv-dfdecf000622ea4dc9eec24be8f0cae99c0469cd.tar.gz libuv-dfdecf000622ea4dc9eec24be8f0cae99c0469cd.zip |
pipe: enable inprocess uv_write2 on Windows
When duplicating the socket handle being sent the target process
id is defaulted to the current process id. This enables uv_write2
to be used for thread-clustering in addition to process-clustering on
multi-threaded programming languages.
The ipc tests are updated to run in two modes. In the _inproc mode
the echo work is done on a second thread instead of in a second
process.
An internal function int uv_current_pid() is added to the windows
specific code which caches the value of GetCurrentProcessId(). This
means uv_write2 does not call GetCurrentProcessId() every inprocess
send.
Refs: https://github.com/joyent/libuv/issues/926
PR-URL: https://github.com/libuv/libuv/pull/540
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions