Since mtime was inside a RwLock, it would be possible to write in the same file at the same time from concurrent threads, but only the first task would succeed the mtime verification.
This makes sure only one thread at a time can write in the file by using a Mutex.
Since
mtime
was inside aRwLock
, it would be possible to write in the same file at the same time from concurrent threads, but only the first task would succeed themtime
verification.This makes sure only one thread at a time can write in the file by using a
Mutex
.Fixes #52.