| 86 | } |
| 87 | |
| 88 | void *mymain(void* arg) |
| 89 | { |
| 90 | for(int i = 0; i < 3; ++i) |
| 91 | { |
| 92 | printf("Creating thread %d\n", i+1); |
| 93 | CreateThread(); |
| 94 | printf("Waiting for thread to finish.\n"); |
| 95 | pthread_join(thread, 0); |
| 96 | thread = 0; |
| 97 | } |
| 98 | printf("All done!\n"); |
| 99 | return 0; |
| 100 | } |
| 101 | |
| 102 | // Tests that the OffscreenCanvas context can travel from main thread -> thread 1 -> thread 2 |
| 103 | // #define TEST_CHAINED_WEBGL_CONTEXT_PASSING |
no test coverage detected