01-30-2013, 01:49 PM
OK, seems the last called function is the dominant then.
Q1:
If i follow you:
A -> int- global=20
A calls B where global becomes 30
C is called numerous times, adds 10 each time, so after 3 calls, global=60
If I call B then after all C calls, then global becomes again 30. Correct?
Id i call D which sets global+100, it's 130 and so on?
Q2: To store global after thread closed, i suppose I must read a file storing it's last value and assign from that?
Q3: Is this variable behavior scheme usable in exe?
Q1:
If i follow you:
A -> int- global=20
A calls B where global becomes 30
C is called numerous times, adds 10 each time, so after 3 calls, global=60
If I call B then after all C calls, then global becomes again 30. Correct?
Id i call D which sets global+100, it's 130 and so on?
Q2: To store global after thread closed, i suppose I must read a file storing it's last value and assign from that?
Q3: Is this variable behavior scheme usable in exe?