You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
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.
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.)
The text was updated successfully, but these errors were encountered: