How to pass a struct around as a reference?

This is my situation:

On thread 1, I make a new struct.

On thread 2, I modify the values inside the struct.

In thread 1, i want to check if thread 2 has changed the values in the struct. How would i do this?
I feel like like i should pass the struct around using a reference/pointer, however I got errors when i tried to do that.

Edit:: I figured out I can pass as truct to function as a pointer, as long as its not a UFunction.