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

Cross-thread use / Send? #10

Open
dave-andersen opened this issue Sep 6, 2021 · 1 comment
Open

Cross-thread use / Send? #10

dave-andersen opened this issue Sep 6, 2021 · 1 comment

Comments

@dave-andersen
Copy link

I was using this via the raspcam crate, but it ended up a little tricky to get things to work because parts of this crate can't be shared across threads. Is this a fundamental limitation due to some form of memory pinning, or is it possible to mark the right bits Send?

(My solution, if it's useful to others, was to wrap the raspcam objects in an actix Actor pinned to a specific thread and to use message passing to request image captures from that thread. But it strikes me as likely unnecessary, and it took a while to figure out a reasonable solution.)

@pedrosland
Copy link
Owner

Hi Dave,
I can't remember for sure and it has been a while but I am not sure that the mmal library is Send. It might be and if there is some documentation (ha) that says it is Send then I would be delighted to merge a PR for this.

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

No branches or pull requests

2 participants