summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src4/NestedExample.java
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2024-03-11 19:12:18 (GMT)
committerMats Wichmann <mats@linux.com>2024-03-11 19:12:18 (GMT)
commitf13e0ebbff200265206e433d9e7cbf922f55045b (patch)
tree91f5aa2d7913984fbe2d1971641f9fa5dacb4529 /test/Java/java_version_image/src4/NestedExample.java
parent351c6049f394c8ce358fde6ffcdcc907ec46f710 (diff)
downloadSCons-f13e0ebbff200265206e433d9e7cbf922f55045b.zip
SCons-f13e0ebbff200265206e433d9e7cbf922f55045b.tar.gz
SCons-f13e0ebbff200265206e433d9e7cbf922f55045b.tar.bz2
Lock creation of CacheDir config
When creating a new CacheDir, the config file is created in exclusive mode, but there's a timing window before the json dump to the file completes when another thread could read the config because it exists - but get a JSONDecodeError because it hasn't finished writing yet. Add locking so the readers will have to wait until the writer is done. Fixes #4489 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src4/NestedExample.java')
0 files changed, 0 insertions, 0 deletions