As an attempt to create an MWE of a more complicated code, I have a function do() which is supposed to be run by two threads. A shared variable temp
do()
temp