in the mani thread i have something like
in my thread class I have something likeCode:while(rt.Running)
{
switch(rt.State)
{..}
..
}
these varianbles are set/canged in various places in the threading code.Code:public t_State State;
public bool bIsRunning;
Is this ok like this?(doesn't seem to work, my program locks up..)
Do I have to lock access to each variable before using it?
Thanks