vedadkajtaz

Results comments of vedadkajtaz

The original post was indeed misleading. I haven't redefined all of the functions in (and also ), but most of them. Those that are redefined are actually used (that is,...

Here's the exhaustive `grep 'pthread'` from the `EMCC_DEBUG=1` and `-s VERBOSE=1` output, with references not containing "pthread" removed from individual lines: ``` DEBUG:root:undefs: set(['pthread_join', 'pthread_setspecific', 'em_pthread_self', 'pthread_detach', 'pthread_getspecific', 'pthread_key_create', 'pthread_create',...

I'll try providing a test case by the end of the week. Thanks.

Here it is. main.c ``` #include #include int main(int argc, char *argv[]) { pthread_key_t key; int ret; pthread_create(NULL, NULL, NULL, NULL); pthread_self(); ret = pthread_key_create(&key, NULL); printf("pthread_key_create() returned %d, key=%d\n",...

The motivation was to port the existing mobile/desktop code heavily using threads without rewriting most of the code (threads that acted as workers, waiting for jobs in a loop had...

Altering `emscripten_pthread.c` by assigning the weak attribute to `pthread_self`: ``` @@ -3,8 +3,9 @@ #include "pthread_impl.h" #if !__EMSCRIPTEN_PTHREADS__ -static struct pthread __main_pthread; +__attribute__((weak)) pthread_t pthread_self(void) { + static struct pthread...

`FS.readdir` is undocumented as well.

Hello, `Module.lengthBytesUTF8()` (as well as `Module.stringToUTF8()`, `Module.Pointer_stringify()`, ...) should be now available as global `lengthBytesUTF8()`.

These are the c++ mangled symbols I'm referring to: $ strings test.wasm | grep namespace N13somenamespace9SomeClassE N13somenamespace17SomeExtendedClassE