aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake.deps/deps.txt4
-rw-r--r--runtime/doc/luvref.txt46
2 files changed, 43 insertions, 7 deletions
diff --git a/cmake.deps/deps.txt b/cmake.deps/deps.txt
index bd9f9d4247..716a892263 100644
--- a/cmake.deps/deps.txt
+++ b/cmake.deps/deps.txt
@@ -16,8 +16,8 @@ UNIBILIUM_SHA256 9c4747c862ab5e3076dcf8fa8f0ea7a6b50f20ec5905618b953665559679748
LIBVTERM_URL https://github.com/neovim/libvterm/archive/v0.3.3.tar.gz
LIBVTERM_SHA256 0babe3ab42c354925dadede90d352f054aa9c4ae6842ea803a20c9741e172e56
-LUV_URL https://github.com/luvit/luv/archive/1.47.0-0.tar.gz
-LUV_SHA256 f9911d9d33808514e9ddc1e74667a57c427efa14fefecfa5fabe80ce95a3150a
+LUV_URL https://github.com/luvit/luv/archive/v1.48.0-0.tar.gz
+LUV_SHA256 c9c12e414f8045aea11e5dbb44cd6c68196c10e02e1294dad971c367976cc1f9
LPEG_URL https://github.com/neovim/deps/raw/d495ee6f79e7962a53ad79670cb92488abe0b9b4/opt/lpeg-1.1.0.tar.gz
LPEG_SHA256 4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a
diff --git a/runtime/doc/luvref.txt b/runtime/doc/luvref.txt
index 1a811a361b..2be73f0412 100644
--- a/runtime/doc/luvref.txt
+++ b/runtime/doc/luvref.txt
@@ -837,7 +837,7 @@ uv.new_prepare() *uv.new_prepare()*
Creates and initializes a new |uv_prepare_t|. Returns the Lua
userdata wrapping it.
- Returns: `uv_prepare_t userdata` or `fail`
+ Returns: `uv_prepare_t userdata`
uv.prepare_start({prepare}, {callback}) *uv.prepare_start()*
@@ -882,7 +882,7 @@ uv.new_check() *uv.new_check()*
Creates and initializes a new |uv_check_t|. Returns the Lua
userdata wrapping it.
- Returns: `uv_check_t userdata` or `fail`
+ Returns: `uv_check_t userdata`
uv.check_start({check}, {callback}) *uv.check_start()*
@@ -934,7 +934,7 @@ uv.new_idle() *uv.new_idle()*
Creates and initializes a new |uv_idle_t|. Returns the Lua
userdata wrapping it.
- Returns: `uv_idle_t userdata` or `fail`
+ Returns: `uv_idle_t userdata`
uv.idle_start({idle}, {callback}) *uv.idle_start()*
@@ -2077,7 +2077,7 @@ uv.pipe_bind2({pipe}, {name}, {flags}) *uv.pipe_bind2()*
- If `type(flags)` is `number`, it must be `0` or
`uv.constants.PIPE_NO_TRUNCATE`.
- If `type(flags)` is `table`, it must be `{}` or
- `{ no_trunate = true|false }`.
+ `{ no_truncate = true|false }`.
- If `type(flags)` is `nil`, it use default value `0`.
- Returns `EINVAL` for unsupported flags without performing the
bind.
@@ -2110,7 +2110,7 @@ uv.pipe_connect2(pipe, name, [flags], [callback]) *uv.pipe_connect2()*
- If `type(flags)` is `number`, it must be `0` or
`uv.constants.PIPE_NO_TRUNCATE`.
- If `type(flags)` is `table`, it must be `{}` or
- `{ no_trunate = true|false }`.
+ `{ no_truncate = true|false }`.
- If `type(flags)` is `nil`, it use default value `0`.
- Returns `EINVAL` for unsupported flags without performing the
bind operation.
@@ -3630,6 +3630,42 @@ uv.thread_getcpu() *uv.thread_getcpu()*
Returns: `integer` or `fail`
+uv.thread_setpriority({thread}, {priority}) *uv.thread.setpriority()*
+
+ > method form `thread:setpriority(priority)`
+
+ Parameters:
+ - `thread`: `luv_thread_t userdata`
+ - `priority`: `number`
+
+ Sets the specified thread's scheduling priority setting. It
+ requires elevated privilege to set specific priorities on some
+ platforms. The priority can be set to the following constants:
+ - `uv.constants.THREAD_PRIORITY_HIGHEST`
+ - `uv.constants.THREAD_PRIORITY_ABOVE_NORMAL`
+ - `uv.constants.THREAD_PRIORITY_NORMAL`
+ - `uv.constants.THREAD_PRIORITY_BELOW_NORMAL`
+ - `uv.constants.THREAD_PRIORITY_LOWEST`
+
+ Returns: `boolean` or `fail`
+
+uv.thread_getpriority({thread}) *uv.thread.getpriority()*
+
+ > method form `thread:getpriority()`
+
+ Parameters:
+ - `thread`: `luv_thread_t userdata`
+
+ Gets the thread's priority setting.
+
+ Retrieves the scheduling priority of the specified thread. The
+ returned priority value is platform dependent.
+
+ For Linux, when schedule policy is SCHED_OTHER (default),
+ priority is 0.
+
+ Returns: `number` or `fail`
+
uv.thread_self() *uv.thread_self()*
Returns the handle for the thread in which this is called.