I made a minimal pastebin in 60 lines of Rust
china🇨🇳 @ kionite231 @lemmy.ca Publicaciones 134Comentarios 836Joined 2 yr. ago
china🇨🇳 @ kionite231 @lemmy.ca
Publicaciones
134
Comentarios
836
Joined
2 yr. ago
It's because I am changing the value of a static variable, there could be more than one thread trying to change the value of FILE_COUNT which could lead to race condition.