Commit Graph
6 Commits
Author SHA1 Message Date
dotCooCoo 3bd5078a3f host: a job can block on its Cancel until it is set
Cancel gets wait() and wait_timeout(timeout). cancel() now wakes every
thread blocked in either, through a Condvar beside the flag;
is_cancelled() and cancel() keep their signatures.

The never-finishing preview jobs in the Filter Gallery, Select and Mask
and Content-Aware Fill stories, and the Filter Gallery trial's render,
looped on is_cancelled() with 10 ms to 1 s sleeps. They now block in
wait(), or in wait_timeout() for the fill story's one-hour job.

Tests in queue_tests.rs: wait_timeout reads the flag, a thread blocked
in wait returns once another thread cancels, and a running job blocked
in wait ends when the queue drops its key.
2026-11-27 18:40:42 -08:00
dotCooCoo c9c90a5a72 host: QueueOptions::default_lanes reads the core count once per process
`QueueOptions::default_lanes` called `std::thread::available_parallelism`
on every call. On Linux that call opens /proc/self/cgroup and the cpu.max
file of every cgroup level, so each call costs several file opens and
reads. `ThumbnailOptions::new` calls it, and the glyphs panel's
`glyph_painter` builds a `ThumbnailOptions` for every visible cell in
every pass, so the panel made about 5,000 such calls per frame.

The lane count is now computed once and kept in a `OnceLock`. wasm32
still returns 0.
2026-11-25 02:46:51 -08:00
Dylan M. Taylor a0e57a9188 pdf-shell-w4: net change of 2 commits
- pdf-shell-w4: written by an agent
- pdf-shell-w4: review fixes (review-1)
2026-11-18 03:15:53 -05:00
Dylan M. Taylor 830da93f02 Contract stubs: craft-atomic, craft-font-catalog, craft-i18n, craft-host, craft-quit, craft-settings, craft-theme, craft-web-host 2026-11-17 22:24:02 -05:00
aiongg 2f228f71ce fwb2-fix: finish the pending jobs (workspace preview queue)
(cherry picked from commit f5356d632e5ccb5822b97270f051dd23e0915878)
2026-11-15 12:06:39 +00:00
aiongg e59460135e Base crates on the framework: theme, behaviour, keymap, platform, window, settings, i18n, fonts 2026-11-12 14:09:48 +00:00