summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src6/TestSCons.java
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2023-08-31 12:36:45 (GMT)
committerMats Wichmann <mats@linux.com>2023-09-04 17:53:42 (GMT)
commit42a9a7eab3c231b4cc3e5c6761b7c921694769c6 (patch)
tree1440bf8f89f543a266f4f08e92d817451c58d998 /test/Java/java_version_image/src6/TestSCons.java
parentcbd156d0b4731902eb9b5e00fa88a3cdc3ddbdd9 (diff)
downloadSCons-42a9a7eab3c231b4cc3e5c6761b7c921694769c6.zip
SCons-42a9a7eab3c231b4cc3e5c6761b7c921694769c6.tar.gz
SCons-42a9a7eab3c231b4cc3e5c6761b7c921694769c6.tar.bz2
msvc config cache: add locking on cachefile
Following on from #4402, which tries to recover from races that might either cause a corrupt msvc cache file, or an incomplete read happening while a write is still in process, add a simple-minded locking protocol to try to prevent the problem in the first place. For writing, a lockfile is created with exclusive access. For reading, the same is done but immediately released: we only wanted to wait that it's not currently locked, we don't need to keep it locked at this point. This is addressing what's mainly an issue for testing, when there can be many concurrent SCons instance each running a test - we don't think this is likely in normal developer usage. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src6/TestSCons.java')
0 files changed, 0 insertions, 0 deletions