-
Notifications
You must be signed in to change notification settings - Fork 22
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
Concurrency #50
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am playing around with exposing some of Rust's
rayon
crate to Emacs. I've started with attempting to implementjoin
:Ignoring the return type for the moment. After building and loading, I invoke it like this:
Here,
Lambda
is a wrapper type I've introduced to allow these evil trait instances:Otherwise the compiler complains of raw pointers (within
Env
) being unSend
able.My
join
function "works" only if I replaceb
with something that doesn't calllb
, the second lambda. Otherwise Emacs complete freezes as soon as I invoke the Lisp shown above. Poking around in the source code of your library, I suspect it has something to do withEnv
. Having theseunsafe
trait instances as I do might just be impossible.Do you have any ideas as to why Emacs would entirely freeze (as opposed to just erroring) when I invoke
racing-join
? IsEnv
entirely thread-unsafe?Thank you kindly.
The text was updated successfully, but these errors were encountered: