Comments (1)
is it undefined behavior to instantiate a module in thread A and then call into the instance in threads B, C, D, etc.? We can assume only one thread ever calls into the instance at any time.
(from the linked issue:)
is it okay if a module is instantiated by thread A, and then (after that has provably completed) thread B calls an exported function from that module instance, and then (after that has provably completed) thread C calls an exported function from the same module instance?
AFAICS, module instances do not have per-thread state, so as long as access is properly separated, such a usage should work. Please let me know if you are running into problems
from w2c2.
Related Issues (20)
- Doesn't fully work on big-endian architectures HOT 12
- Segfault when compiling module which exports imported function HOT 9
- Implications of a shared runtime library HOT 7
- Separated compilation sections in -fPIC? HOT 5
- Attempting to run w2c2 on an optimized WASI C# binary causes missing opcode error HOT 1
- skipping unsupported unknown section, unsupported export on C# WASI HOT 5
- the remaining WASI function calls HOT 3
- Completion of error handling HOT 1
- Directly linking against imports HOT 2
- Converting floats to ints doesn't work HOT 3
- SIGFPE (Floating point exception)
- Use alignment hints HOT 1
- DWARF doesn't work HOT 23
- undefined reference to trap and wasiMemory HOT 2
- call_indirect not sandboxed properly HOT 3
- How to access files from the binary HOT 5
- Support for WASM generated by GHC HOT 1
- Support WASI threads HOT 2
- `__ATOMIC_SEQ_CST` undeclared on BeOS HOT 3
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 w2c2.