Is this an OK way to check if a function needs thread synchronisation?
Because I don’t want to pay the performance penalty of synchronisation a function between threads if only one thread is ever going to call it, I was wondering if this is an acceptable way to check: