Fix some races
commit2fb79a63263f5811770c783c91ff98d317dab528
authorMichael Matz <matz@suse.de>
Sat, 14 Dec 2019 22:58:45 +0000 (14 23:58 +0100)
committerMichael Matz <matz@suse.de>
Sat, 14 Dec 2019 22:58:45 +0000 (14 23:58 +0100)
tree6bc5ffee3ddd34cf6166439e7cb50340eaea213c
parent65f74a4df094996903a86463d09f3f126fcc790f
Fix some races

protect some more accesses to global data with the semaphore.
(And for the testcase: don't just write into global data, use local
copies; it's not important for speed here).
libtcc.c
tests/libtcc_test_mt.c