Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Thread local variables

$
0
0

Hi,

 

The local variables of my thread are losing their values after I wait for a queue message.

I had to declare all variables as static to solve the problem.

 

As the thread function never returns, I as expecting that the local variables would retain their values.

is my assumption wrong?


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>