Solved

Acess from thread to global variable

Posted on 2000-03-11
1
178 Views
Last Modified: 2010-04-02
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
0
Comment
Question by:Yulia
1 Comment
 
LVL 5

Accepted Solution

by:
Wyn earned 50 total points
ID: 2609063
Hi,Yulia .
NO need to transfer it.Global variable can be used in each thread directly.

Regards
W.Yinan
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now