how to get a variable parameter from another working thread in a working thread
I wrote a MFC multithread application. the problem is that a working thread need to get a variable parameter from another working thread. How to achieve this?
Thanks.
[175 byte] By [
Apal] at [2007-11-20 1:01:42]

# 2 Re: how to get a variable parameter from another working thread in a working thread
I wrote a MFC multithread application. the problem is that a working thread need to get a variable parameter from another working thread. How to achieve this?
Thanks.In your case, you can have a 'data' class with thread safe setter and getter methods that you can pass between threads. You would create an instance of this class in the mfc class and pass it to each worker thread. The worker thread would cast it to the data class and use the thread safe method to retrieve or set the data.
Arjay at 2007-11-9 14:00:09 >
