Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose things from provider for region pre-cache functionality #119

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Feodor0090
Copy link
Contributor

@Feodor0090 Feodor0090 commented Jun 29, 2023

Part of #82

Expected usage

  1. global provider is stopped by Stop(true) call
  2. once it's actually stopped, local provider is created and bound to cache worker thread
  3. Worker calls BeginMapPaint()
  4. Worker calls GetTile() for next queued tile
  5. Worker waits until it's ready by checking its state
  6. Worker calls EndMapPaintThenDiscardAll() to drop loaded tile and moves to p. 3 for next tile
  7. Once finished, local provider is stopped and global started again.

@Feodor0090 Feodor0090 marked this pull request as ready for review July 15, 2023 22:51
@Feodor0090 Feodor0090 requested a review from shinovon July 15, 2023 22:52
@Feodor0090
Copy link
Contributor Author

@shinovon мы это или мержим, или предложи как сделать лучше. Чтоб я доделал кэш и вопрос был закрыт.

@shinovon
Copy link
Collaborator

@shinovon мы это или мержим, или предложи как сделать лучше. Чтоб я доделал кэш и вопрос был закрыт.

не очень понимаю что это и зачем

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants