I have a "unique" type integer. I use it like this:
int unique=0;
public int GetUniqueId()
{
return unique++;
}
I know I'm being a bit paranoid, but is this an atomic operation, or would it require some form of lock? This function will be used in a extremely concurrent class.