Comments (2)
Hey @scorpionfeng, there is nothing that prevents you from running Hermes on a newly spawned thread. However, you need to ensure that access to the runtime is properly synchronised. For instance, you could guard access to the runtime with a mutex, in order to ensure that it isn't simultaneously accessed from multiple threads. Hermes does not support having multiple threads call into the same runtime at the same time, and that is likely why you are observing a crash.
from hermes.
and if I want to use runtime in the thread , shall I create a new runtime use api: facebok::hermes::makeHermesRuntime() ,is that correct?
from hermes.
Related Issues (20)
- Support for Async/Await and Promise with JSI API HOT 3
- Support for import/export at runtime HOT 3
- Address Sanitizer tests failing with ES6 Classes HOT 2
- Importing files suppress `async generators are unsupported` errors HOT 4
- ReferenceError: Property 'document' doesn't exist, js engine: hermes HOT 2
- C++ class bindings HOT 2
- Property storage exceeds 196607 properties when sending a file via fetch() HOT 2
- Feature request: Improved error `async arrow functions are unsupported` HOT 1
- Feature Request: Support for Parsing YYYY/MM/DD Date Format in Hermes Engine
- Untrusted bytecode HOT 1
- JSI - Create a function that is backed by a jsi::HostObject? HOT 6
- using TextDecoder with hermes
- Intl.NumberFormat does not interpret strings as decimal HOT 4
- Closed
- Getting error while installing pod for React native projects HOT 3
- Unable to get JS function names in HermesSamplingProfiler HOT 3
- NULL pointer dereference in function getLiveInValue, file lib/Optimizer/Scalar/Mem2Reg.cpp
- NULL pointer dereference in function hermes::vm::JSObject::findProperty in include/hermes/VM/JSObject.h HOT 1
- Issue Title: Error installing FBLazyVector during pod install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermes.