Skip to content
Snippets Groups Projects

parser: Don't toggle idle state outside of the worker

Changing the idle state is likely to cause a deadlock on startup when tasks are restored. parser::restore() is called from MediaLibrary::initialize() with the medialib lock held, and changing the idle state synchronously from that thread would cause onIdleChange to be invoked, which will try to lock the mutex recursively, leading to a deadlock.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading