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

how can i use threadsafe.h from JSI? #761

Open
mattiaferrari02 opened this issue Feb 9, 2024 · 0 comments
Open

how can i use threadsafe.h from JSI? #761

mattiaferrari02 opened this issue Feb 9, 2024 · 0 comments

Comments

@mattiaferrari02
Copy link

Hi guys I'm getting started with react native JSI, I just noticed that this exists https://github.com/facebook/react-native/blob/50bd9e367bb8a0c18be43f751a2fc95908df1ff1/packages/react-native/ReactCommon/jsi/jsi/threadsafe.h . So how is it possible to access the JSI runtime on a different thread in a safe way.
At this moment I'm trying to do that but my module crashes with an error at this lines:
Screenshot 2024-02-09 at 09 44 47

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

1 participant