Is it safe to use these functions from multiple threads simultaneously?
What about when I try to set and read the same variable in multiple threads?