Closed niklasad1 closed 5 years ago
Hey, this replaces global static mut with AtomicBool which is thread-safe
global static mut
AtomicBool
Thanks for the contribution! You probably figured out, that the whole API is not threadsafe (does not implement Sync), but still, the acquiring of the API guard should be threadsafe.
Hey, this replaces
global static mut
withAtomicBool
which is thread-safe