| 45 | } |
| 46 | |
| 47 | void CreateThread(int i, int n) { |
| 48 | pthread_attr_t attr; |
| 49 | pthread_attr_init(&attr); |
| 50 | pthread_attr_setstacksize(&attr, 4*1024); |
| 51 | int rc = pthread_create(&thread[i], &attr, ThreadMain, 0); |
| 52 | if (rc != 0 || thread[i] == 0) |
| 53 | printf("Failed to create thread!\n"); |
| 54 | pthread_attr_destroy(&attr); |
| 55 | } |
| 56 | |
| 57 | int threadNum = 0; |
| 58 |
no test coverage detected