-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
library_pthread.js: Ensure transferredCanvasNames is iterable (#22623)
This was first broken back in #17577 and then fixed in #17752. I then broke it again in #22545 (yay!) (see #22620). This time I will include a test to ensure this doesn't happen again.
- Loading branch information
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <assert.h> | ||
#include <pthread.h> | ||
#include <stdio.h> | ||
|
||
void* thread_func(void* arg) { | ||
printf("Hello from thread\n"); | ||
return NULL; | ||
} | ||
|
||
int main() { | ||
pthread_t t; | ||
pthread_create(&t, NULL, thread_func, NULL); | ||
assert(t); | ||
pthread_join(t, NULL); | ||
printf("done\n"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Hello from thread | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters