gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

All uses of `static mut` are unsound #216

Closed Diggsey closed 2 years ago

Diggsey commented 2 years ago

https://github.com/gabdube/native-windows-gui/search?q=%22static+mut%22

When accessing a static mut programs must ensure that access can only come from a single thread.

In this case, it should be relatively easy to replace all static mut uses with atomics.

gabdube commented 2 years ago

yeah, that was just lazy of me. That will be fixed before the new release.

gabdube commented 2 years ago

Fixed in my latest commit