Thank you. No workers are not custom, I use emscripten API with emscripten_call_worker function to call worker and I generate my code to webassembly, so it cannot be compiled with USE_PTHREDS=1 or ASMF. I thought whether emscripten had simple flags to get access to file from webworker except preload-files.
вторник, 15 августа 2017 г., 12:54:47 UTC+3 пользователь [email protected] написал: > > Hi, > I need to download some files and work with them in main thread and in > webworkers. So I cannot use --preload-files options to build JS files from > C++. > I am using Ajax to load file to temporary browser directory. > Then with Module['FS_createDataFile']('/dir", "file.dat", data, true, > true) I write this data to file, so I can get access to this data in C++ > code with path("/dir/file.dat") > But I cannot get access to this file in webworkers. Is there any > solutions, how to do this? > -- 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.
