Hello, Im having an issue with my globals. In particular a Bool value.

I have created a public class,

public class Globals
{
public bool dataToSend;
}

in one thread data is loaded into an array and this variable is changed to true.

in another thread there is a constant loop that checks to see if this variable is set to true then sends it down the serial port. Although, after I change the variable in my first thread the value does not change for the second thread. Why would this be?