Skip to content

Commit

Permalink
review feedback [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Sep 24, 2020
1 parent 06ab316 commit b3db6a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions system/lib/compiler-rt/emscripten_exception_builtins.c
Expand Up @@ -8,11 +8,6 @@
/*
References to these longjmp- and exceptions-supporting things are generated
in the llvm backend.
Note that these might make more sense in compiler-rt, but they need to be
built with multithreading support when relevant (to avoid races between
threads that throw at the same time etc.), and compiler-rt is not built
that way atm.
*/

#include <threads.h>
Expand Down
7 changes: 1 addition & 6 deletions tests/core/pthread/exceptions.cpp
Expand Up @@ -44,13 +44,8 @@ pthread_t thread[NUM_THREADS];

void CreateThread(int i)
{
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
static int counter = 1;
int rc = pthread_create(&thread[i], &attr, ThreadMain, (void*)i);
int rc = pthread_create(&thread[i], nullptr, ThreadMain, (void*)i);
assert(rc == 0);
pthread_attr_destroy(&attr);
}

void loop() {
Expand Down

0 comments on commit b3db6a9

Please sign in to comment.