Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
Mutex
instead of RwLock
for securing the inner data
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