mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
bbd4ae1bc1
Fixes #24740. Implements the `uv_mutex_*` and `uv_async_*` APIs. The mutex API is implemented exactly as libuv, a thin wrapper over the OS's native mutex. The async API is implemented in terms of napi_async_work. As documented in the napi docs, you really shouldn't call `napi_queue_async_work` multiple times (it is documented as undefined behavior). However, our implementation doesn't have any issue with this, so I believe it suits our purpose here.
23 lines
483 B
TOML
23 lines
483 B
TOML
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "test_napi"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
libuv-sys-lite = "=1.48.2"
|
|
napi-sys = { version = "=2.2.2", default-features = false, features = ["napi7"] }
|
|
|
|
[dev-dependencies]
|
|
test_util.workspace = true
|
|
|
|
[build-dependencies]
|
|
napi-build = "1"
|