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:
You must compile the Money.h++ library with the appropriate threading option. See the Build Guide for instructions specific to your system.
Money.h++ 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.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.