Threads and C++ Class Members

If you use the same C++ class in two different threads, you may have thread problems such as the following:

In both cases you need re-entrancy protection. For example, use a semaphore whenever you access the static variables or the common class instance.



Debugging Threads