mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
The plug-in store turn, the Data Recovery area hold, the script grants lock and the hang report file each released their file lock only by closing the file. The lock stays held while any copy of the handle is open, and a child process that any thread starts holds a copy until it runs its program. While one was starting, the next turn on the plug-in store waited, an app found its own recovery area busy, a grants change timed out, and the next launch left a hang report alone. Each holder now unlocks the file when it is dropped, as #9837 does for the nightly session and the GPU start file. The engine's three locks share one type, `store::LockedFile`. A left hang report that a launch locks to read is held the same way. Each new test keeps a copy of the handle open, drops the holder and takes the lock again.