| 40 | } |
| 41 | |
| 42 | int main() { |
| 43 | // Run TestStack both on the main thread and on a secondary thread |
| 44 | TestStack(); |
| 45 | pthread_t thread; |
| 46 | int rc; |
| 47 | |
| 48 | rc = pthread_create(&thread, NULL, ThreadMain, NULL); |
| 49 | assert(rc == 0); |
| 50 | |
| 51 | rc = pthread_join(thread, NULL); |
| 52 | assert(rc == 0); |
| 53 | |
| 54 | printf("done\n"); |
| 55 | return 0; |
| 56 | } |