Acess from thread to global variable

I want in my thread to acess a global
array, can I do it or should I transfer
it as a parameter to a thread and if
I should how do I do it, the array looks
like this:
CList <int, int&> Results;

Thanks
YuliaAsked:
Who is Participating?
 
WynConnect With a Mentor Commented:
Hi,Yulia .
NO need to transfer it.Global variable can be used in each thread directly.

Regards
W.Yinan
0
All Courses

From novice to tech pro — start learning today.