Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add locale macro to wrap static-space-using fncs
Some functions return a result in a global-to-the-program buffer, or they have an internal global buffer. Other threads must be kept from simultaneously using that function. This macro is to be used for all such ones dealing with locales. Ideally, there would be a separate mutex for each such buffer space. But these functions also have to lock the locale from changing during their execution, and there aren't that many such functions, and they actually are rarely executed. So a single lock will do. This will allow future commits to have more targeted locking for functions that don't affect the global locale.
- Loading branch information