I was given a function that looks like this:
static float f1, *f2;
f2 = new float;
delete  f2;
I need to make this function usable by threads. So can I just do this:
void Something(float &f1)
I would pass f1 from the caller so it is in effect static for the duration of my calls. I am uncertain about how that f2 variable is working right now.