_stat and _utime synchronization
Hi, I'm working on a project regarding time, and I 'm trying to read/write time data from different processes.
I'm thinking of using _stat/_utime to read/write time data, and I was wondering if anyone knew how _Stat and _utime manages synchronization.
_utime sets the modified Time and Access Time for a file, while _stat can get those data.
Could there be a race condition when using these two functions? or, could _stat read data while _utime is writing the data mid way and return corrupted Data?
I couldn't find a way for RWLock for windows between processes (SRWLock seems to be for threads only), and I'm wondering if using _stat and _utime is safe enough.
Thanks!