Files
vectorcraft/crates/engine
dotCooCoo cef8a6d897 Plug-ins: background loads check stored files and ids again before they install
- A stored module's file is read again on its worker thread once the module
  has loaded, whatever the file's modified time, and the install still skips
  a file whose stamp changed since. The UI thread no longer reads the file.
- Stored and folder modules install through registry::install_for_load,
  which checks for an install or removal of the id elsewhere while the
  plug-ins' write lock is held, and records the module's grant in the same
  step. A grant is forgotten only while the plug-in that took that revision
  is still installed (registry::revoke_if_installed).
- A grant that a stored load removed and must put back for a later file is
  written to grants.json first; when that write fails, the module is not
  installed, and a grant put back for a module that then did not install is
  removed again.
- A folder load in which a file found no loader thread is loaded again the
  next time the preferences are applied. A plugin.reload keeps its report as
  the folder last loaded only when no load started after it.
- Loads: a job's time is read while it is marked finished, the deadline check
  reads the clock under the same lock, and only the jobs taken from the queue
  fail when no worker is left. wait() counts outcomes taken with ready() as
  released, so the jobs after them start.
- File › Open checks the path again after waiting for the plug-in loads.
- Tests wait for workers with bounded receives.
2026-11-24 09:27:50 -08:00
..