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

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

Merged
merged 4 commits into from Feb 25, 2017
Merged

Conversation

tmpsantos
Copy link
Member

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

@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.

None yet

4 participants