Problem: I have 2 functions on different threads:
Thread A accessing a variable and thread B modifying that variable. I need to create a copy of that var