Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 696
    • Issues 696
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Merge Requests
  • !1268

Merged
Opened Aug 07, 2020 by akwizgran@akwizgranOwner

Hold a wake lock while running scheduled tasks

  • Overview 11
  • Commits 12
  • Pipelines 4
  • Changes 25

This branch acquires a wake lock when checking for scheduled tasks for run, and holds it until the tasks have run. The TaskScheduler rather than the caller becomes responsible for submitting tasks to the executors on which they run. This allows the scheduler to manage the wake lock on the caller's behalf.

The wake lock factory becomes a wake lock manager, with a couple of helper methods for doing work while holding wake locks.

The branch also adds a tag to AndroidWakeLock, which is used for logging. The tag of the underlying OS wake lock is unaffected.

Third part of #1142 (closed)

Edited Aug 10, 2020 by akwizgran
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: briar/briar!1268
Source branch: 1142-wakeful-tasks

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.