Page MenuHomePhorge

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

Authored by nannanko on Sat, Aug 24, 3:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 14, 3:34 AM
Unknown Object (File)
Thu, Sep 12, 10:10 AM
Unknown Object (File)
Wed, Sep 11, 3:27 PM
Unknown Object (File)
Wed, Sep 11, 10:01 AM
Unknown Object (File)
Wed, Sep 11, 8:01 AM
Unknown Object (File)
Tue, Sep 10, 3:46 PM
Unknown Object (File)
Mon, Sep 9, 10:28 AM
Unknown Object (File)
Mon, Sep 9, 10:20 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.Sat, Aug 24, 5:38 PM
tusooa added inline comments.
src/kazv-io-manager.cpp
188–191
This revision now requires changes to proceed.Sat, Aug 24, 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.Sat, Aug 31, 7:03 PM
This revision is now accepted and ready to land.Sun, Sep 1, 3:21 PM