tnarol
May 23rd, 2006, 05:03 AM
Hi,
Here's one more of my many multithreading beginner questions (sorry for almost spamming the group !).
I'd like to know the best way to have visibility on a variable from different threads. My current solution is having the variable global in the main thread (which creates the others) and give visibility to other threads by including the .h file were it is declared extern.
Thanks
Here's one more of my many multithreading beginner questions (sorry for almost spamming the group !).
I'd like to know the best way to have visibility on a variable from different threads. My current solution is having the variable global in the main thread (which creates the others) and give visibility to other threads by including the .h file were it is declared extern.
Thanks