[go: nahoru, domu]

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

Question about Isolates and thread_local #49463

Closed
antonbashir opened this issue Jul 17, 2022 · 1 comment
Closed

Question about Isolates and thread_local #49463

antonbashir opened this issue Jul 17, 2022 · 1 comment

Comments

@antonbashir
Copy link

Hello everyone

Is it possible to execute different parts of Isolate in the same thread ?

For example, I have an isolate function with await for (final element in transmitter) where transmitter is ReceivePort.
And I've noticed that await for executed with other (getttid() ID) than first line of code in my isolate.
In my case I communicate with native library through FFI and that library uses thread_local values.
So when I'm handling messages from my transmitter I'm executing functions in that library.
But because of different threads my execution is falling.

I want ask about possibility to bind/pin Isolate to specific thread.

@blaugold
Copy link
Contributor

This looks like a duplicate of #46943.

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