Using a CriticalSection requires placing the CriticalSection around
all instances of the global variable (both in the main thread
and the worker thread.
If the program was designed from get go this is possible, but
in this case a worker thread is added and going through many
many functions looking for all the instances of this particular
Global (a UDT array in this case) would be a giant pain.
Unfortunatly the job of the new worker thread is to update the
global variable.
Is there a tricky way to accomplish this?
------------------
Kind Regards
Mike
all instances of the global variable (both in the main thread
and the worker thread.
If the program was designed from get go this is possible, but
in this case a worker thread is added and going through many
many functions looking for all the instances of this particular
Global (a UDT array in this case) would be a giant pain.
Unfortunatly the job of the new worker thread is to update the
global variable.
Is there a tricky way to accomplish this?
------------------
Kind Regards
Mike
Comment