| 87 | } |
| 88 | |
| 89 | int main() { |
| 90 | pthread_mutexattr_t attr; |
| 91 | pthread_mutexattr_init(&attr); |
| 92 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |
| 93 | pthread_mutex_init(&lock, &attr); |
| 94 | |
| 95 | pthread_mutex_lock(&lock); |
| 96 | pthread_mutex_unlock(&lock); |
| 97 | |
| 98 | // Create new threads in parallel. |
| 99 | for (int i = 0; i < NUM_THREADS; ++i) { |
| 100 | CreateThread(i, threadNum++); |
| 101 | } |
| 102 | |
| 103 | emscripten_set_timeout_loop(WaitToJoin, 100, 0); |
| 104 | return 99; |
| 105 | } |
nothing calls this directly
no test coverage detected