Var ‘xxx’ is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
I use some global variables, only Integer, which can be accessed from several threads. Under normal circumstances only one thread writes this variable but other threads read them.