Currency Module User’s Guide : Chapter 9 Technical Notes : Multithread Safety
Multithread Safety
RWDecimal<T> provides basic multithread safety. All functions behave the same in a multithreaded environment as in a single-threaded environment. Of course, this assumes that individual objects are not shared across multiple threads.
If you plan to use RWDecimal<T> in a multithreaded environment, you should be aware of the following:
Currency Module objects do not provide a locking mechanism for use in a multithread environment. An application should either avoid sharing individual objects across threads, or it should perform its own locking around objects shared between threads.
The only static data maintained in RWDecimal<T> classes are handles to inexact and overflow error handlers. Each class has its own pair of error handlers.