35 ms·You wrap it in a mutex and then it is allowed. Global state is allowed. It just has to be thread safe.by adastra22 11mo agoYou wrap it in a mutex and then it is allowed. Global state is allowed. It just has to be thread safe.