J
Jan Li?e
I have got a main class and this main class has a member-variable
with a boolean value. When a certain method of this class is called, the
method checks if my boolean-variable is true or not and does something (or not).
In the background is running the thread of my NetworkReceiver class
which listens on an existing socket for data. If some sort of data
arrives i want the thread to change the boolean variable of my main class.
My problem is: how can i synchronize the background thread with my
main class?
Many thanks in advance,
Jan
with a boolean value. When a certain method of this class is called, the
method checks if my boolean-variable is true or not and does something (or not).
In the background is running the thread of my NetworkReceiver class
which listens on an existing socket for data. If some sort of data
arrives i want the thread to change the boolean variable of my main class.
My problem is: how can i synchronize the background thread with my
main class?
Many thanks in advance,
Jan