| 58 | } |
| 59 | |
| 60 | void CreateThread() |
| 61 | { |
| 62 | pthread_attr_t attr; |
| 63 | pthread_attr_init(&attr); |
| 64 | emscripten_pthread_attr_settransferredcanvases(&attr, "#canvas"); |
| 65 | int rc = pthread_create(&thread, &attr, ThreadMain, 0); |
| 66 | if (rc == ENOSYS) |
| 67 | { |
| 68 | printf("Test Skipped! OffscreenCanvas is not supported!\n"); |
| 69 | #ifdef REPORT_RESULT |
| 70 | REPORT_RESULT(0); // for now, report a skip as success |
| 71 | #endif |
| 72 | exit(1); |
| 73 | } |
| 74 | pthread_attr_destroy(&attr); |
| 75 | threadRunning = 1; |
| 76 | } |
| 77 | |
| 78 | void PollThreadExit(void *arg) |
| 79 | { |
no test coverage detected