How to share a value type variable between threads by ref?
I want to avoid using fields when sharing data between 2 threads.
Consider 2 classes – user and handler.
User constructs handler and tells it to change a user.flag variable after 1000ms.
I want to avoid using fields when sharing data between 2 threads.
Consider 2 classes – user and handler.
User constructs handler and tells it to change a user.flag variable after 1000ms.