Link to home
Start Free TrialLog in
Avatar of gavinpat
gavinpat

asked on

Casting From Thread Safe Class

I've got a class for data which I want to use in both a base CWinThread and also a worker thread. I've made a child class of the data class adding only a CMutex and Get and Set functions. Now bearing in mind that I must use CSingleLock or CMultiLock to protect my objects when the worker thread is running, what ought to happen when I cast from the thread safe data class to the thread unsafe data class?
ASKER CERTIFIED SOLUTION
Avatar of gvg
gvg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial