diff options
author | cjihrig <cjihrig@gmail.com> | 2018-08-16 22:14:55 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-08-20 08:39:30 -0400 |
commit | 4e7d82945dfc3f9e264c258ef29c45910b7fd8bc (patch) | |
tree | 5f0cd0d759bc8e5075b672b3d410757103330ca8 /deps/uv/docs/src/misc.rst | |
parent | 95b0e2c1331415e18d171d60d843a2c1328ffbe3 (diff) | |
download | android-node-v8-4e7d82945dfc3f9e264c258ef29c45910b7fd8bc.tar.gz android-node-v8-4e7d82945dfc3f9e264c258ef29c45910b7fd8bc.tar.bz2 android-node-v8-4e7d82945dfc3f9e264c258ef29c45910b7fd8bc.zip |
deps: upgrade to libuv 1.23.0
Notable changes:
- Restores compatibility with the old IPC protocol.
- Adds uv_open_osfhandle().
- Adds uv_os_{get,set}priority().
PR-URL: https://github.com/nodejs/node/pull/22365
Fixes: https://github.com/nodejs/node/issues/21671
Fixes: https://github.com/nodejs/node/issues/15433
Refs: https://github.com/nodejs/node/pull/21675
Refs: https://github.com/nodejs/node-addon-api/issues/304
Refs: https://github.com/nodejs/abi-stable-node/issues/318
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps/uv/docs/src/misc.rst')
-rw-r--r-- | deps/uv/docs/src/misc.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/uv/docs/src/misc.rst b/deps/uv/docs/src/misc.rst index 07908c98ff..529d588c5d 100644 --- a/deps/uv/docs/src/misc.rst +++ b/deps/uv/docs/src/misc.rst @@ -517,3 +517,31 @@ API storage required to hold the value. .. versionadded:: 1.12.0 + +.. c:function:: int uv_os_getpriority(uv_pid_t pid, int* priority) + + Retrieves the scheduling priority of the process specified by `pid`. The + returned value of `priority` is between -20 (high priority) and 19 (low + priority). + + .. note:: + On Windows, the returned priority will equal one of the `UV_PRIORITY` + constants. + + .. versionadded:: 1.23.0 + +.. c:function:: int uv_os_setpriority(uv_pid_t pid, int priority) + + Sets the scheduling priority of the process specified by `pid`. The + `priority` value range is between -20 (high priority) and 19 (low priority). + The constants `UV_PRIORITY_LOW`, `UV_PRIORITY_BELOW_NORMAL`, + `UV_PRIORITY_NORMAL`, `UV_PRIORITY_ABOVE_NORMAL`, `UV_PRIORITY_HIGH`, and + `UV_PRIORITY_HIGHEST` are also provided for convenience. + + .. note:: + On Windows, this function utilizes `SetPriorityClass()`. The `priority` + argument is mapped to a Windows priority class. When retrieving the + process priority, the result will equal one of the `UV_PRIORITY` + constants, and not necessarily the exact value of `priority`. + + .. versionadded:: 1.23.0 |