Page MenuHomePhorge

Fix the problem that kazv cannot be closed when cached files
ClosedPublic

Authored by nannanko on Aug 24 2024, 3:27 AM.
Tags
None
Referenced Files
F112402: D177.1732308582.diff
Thu, Nov 21, 12:49 PM
F112332: D177.1732294023.diff
Thu, Nov 21, 8:47 AM
F112302: D177.1732290943.diff
Thu, Nov 21, 7:55 AM
Subscribers
None

Details

Summary

Fixed the problem that kazv cannot be closed when cached files.

Type: fix

Test Plan

Open a room with uncached files and verify kazv starts caching the files.

Close kazv and verify that the cache jobs is killed immediately.

Diff Detail

Repository
rK kazv
Branch
nannanko/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 280
Build 548: GitLab CI for kazv
Build 547: arc lint + arc unit

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

nannanko removed a reviewer: servant.
tusooa requested changes to this revision.Aug 24 2024, 5:38 PM
tusooa added inline comments.
src/kazv-io-manager.cpp
188–191
This revision now requires changes to proceed.Aug 24 2024, 5:38 PM
nannanko added inline comments.
src/kazv-io-manager.cpp
188–191

It don't work because the cancel() will cause the job to be removed from cacheJobs, so iterators and loops cannot be used reliably.

nannanko marked an inline comment as done.
  • Fixed the problem that kazv cannot be closed when cached files

Added comment on why loops cannot be used directly on m_d->cacheJobs

tusooa retitled this revision from Fixed the problem that kazv cannot be closed when cached files to Fix the problem that kazv cannot be closed when cached files.Aug 31 2024, 7:03 PM
This revision is now accepted and ready to land.Sep 1 2024, 3:21 PM