Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Add pause/resume to the Thread class - #8194

Merged
tmpsantos merged 4 commits into
masterfrom
tmpsantos-pause_resume
Feb 25, 2017
Merged

tmpsantos merged 4 commits into
masterfrom
tmpsantos-pause_resume

Conversation

@tmpsantos

Copy link
Copy Markdown
Contributor

Make a thread completely halt and not process any message on the message queue until resume() is called.

Sending a sync message to a halted thread will result on a deadlock, thus the assertion.

Deleting a paused thread will trigger a resume.

Make a thread completely halt and not process any message on
the message queue until resume() is called.

Sending a sync message to a halted thread will result on
a deadlock, thus the assertion.

Deleting a paused thread will trigger a resume.
It will halt the networking thread completely. Expired and error'ed
tiles won't get re-requested until resume() is called again.
Simple test of the DefaultFileSource pause/resume API.
@mention-bot

Copy link
Copy Markdown

@tmpsantos, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @ansis and @incanus to be potential reviewers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants