Skip to content

Commit

Permalink
use Mutex instead of RwLock for securing the inner data
Browse files Browse the repository at this point in the history
The use of `RwLock` is typically used when there is a need for
multiple readers and infrequent writers, as `RwLock` allows multiple
concurrent readers or a single writer. However, most functions were
using the `write()` method, while the `read()` method was rarely used.

Fixes #42
  • Loading branch information
hozan23 committed Jun 27, 2024
1 parent 9d0578b commit 6b8a513
Showing 1 changed file with 66 additions and 66 deletions.
Loading

0 comments on commit 6b8a513

Please sign in to comment.