1. Emscripten supports pthreads, so if TBB uses that under the hood, things might just work? That happens with c++ standard library <thread>, for example.
https://kripken.github.io/emscripten-site/docs/porting/pthreads.html 2. Yes, sounds like you are seeing a bug that should be fixed. In general that should work. On Tue, May 10, 2016 at 9:39 AM, <[email protected]> wrote: > Hello, I have 2 questions. I'm trying to port a project with Emscripten, > and the project has among its dependencies Intel TBB library. > > Question 1: do I have to rewrite all the project to get rid of all > multithreading code, or does Emscripten somehow map multithreaded code to > monothreaded code? > > Question 2: When trying to build the project with em++, it is parsing > dependencies headers and it raises errors with undeclared unidentifiers. > I isolated one particular command with em++ that raises such errors. > When I run the same command with Emscripten clang++ version, there is no > problem. > So I'm trying to go through emcc.py to find out which stuff added by emcc, > on top of clang++, is causing the problem. > Does that sound like a reasonable approach? Are there any known cause that > could explain that a compilation with Emscripten clang++ fastcomp is OK but > with em++, is not? > > many thanks > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
