Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Add example how to add thread local bundle / system with object which can not be send between threads #2718

Closed
korczis opened this issue Sep 19, 2021 · 3 comments
Labels
type: maintenance A task that has no noticeable user-facing effect. Code cleanup, small refactors, etc.

Comments

@korczis
Copy link

korczis commented Sep 19, 2021

Description

Add example how to add thread local bundle / system with object which can not be send between threads.

Reason

Old documentation is obsolete, new is broken and this is often required feature when integrating external systems - renderers, audio system.

Additional Information

It is hard to find any documentation for this and my rust-fu is weak. If somebody can add show me minimal working example in comments I will appreciate it and I will try to use it for my SDL integration.

@korczis korczis added the type: maintenance A task that has no noticeable user-facing effect. Code cleanup, small refactors, etc. label Sep 19, 2021
@korczis
Copy link
Author

korczis commented Sep 20, 2021

I worked it out.

@BurntNail
Copy link

What was the solution?
Just trying to avoid: https://xkcd.com/979/

@korczis
Copy link
Author

korczis commented Sep 21, 2021 via email

@korczis korczis closed this as completed Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: maintenance A task that has no noticeable user-facing effect. Code cleanup, small refactors, etc.
Projects
None yet
Development

No branches or pull requests

2 participants