T
Tim Murray
Hi,
I am creating a multithreaded server application in
Managed C++. Each client that connects to the server will
be running on their own thread to process their input.
They all need to share one instance of a class running on
the main thread. From my understanding, if multiple
threads invoke a function in this object(on the main
thread) using a delegate, there could be problems. I was
trying to figure out how to invoke the functions using
ISynchronizeInvoke, but I have not been able to find a
good example of how to use it. Can anyone point me in the
right direction?
Thanks,
Tim
I am creating a multithreaded server application in
Managed C++. Each client that connects to the server will
be running on their own thread to process their input.
They all need to share one instance of a class running on
the main thread. From my understanding, if multiple
threads invoke a function in this object(on the main
thread) using a delegate, there could be problems. I was
trying to figure out how to invoke the functions using
ISynchronizeInvoke, but I have not been able to find a
good example of how to use it. Can anyone point me in the
right direction?
Thanks,
Tim