Unverified Commit e23023d6 authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Shelley Vohr
Browse files

src: add ExclusiveAccess class

Similar to Rust's `std::sync::Mutex` in that it requires one to unwrap
the object before accessing it, acquiring the mutex in the process.

PR-URL: https://github.com/nodejs/node/pull/31717


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarTobias Nießen <tniessen@tnie.de>
Reviewed-By: default avatarDavid Carlier <devnexen@gmail.com>
parent cd99dc73
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment