Threadsafe is a term that is thrown around documentation, however there is seldom an explanation of what it means, especially in a language that is understandab
i maybe wrong but one of the criteria for being thread safe is to use local variables only. Using global variables can have undefined result if the same function is called from different threads.