DirtyHairy / async-mutex

A mutex for synchronizing async workflows in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Shared lock

jlherren opened this issue · comments

I would find a shared lock useful, similar to c++'s std::shared_lock, which allows to acquire an exclusive lock as well as acquiring multiple shared locks concurrently.

I believe this can be implemented using two simple locks.