- pthread_create(&t1, NULL, test1::helper, NULL);
- pthread_create(&t2, NULL, test1::helper, NULL);
- pthread_join(t1, NULL);
- pthread_join(t2, NULL);
- llvm_stop_multithreaded();
+ pthread_create(&t1, &a1, test1::helper, nullptr);
+ pthread_create(&t2, &a2, test1::helper, nullptr);
+ pthread_join(t1, nullptr);
+ pthread_join(t2, nullptr);
+ free(p1);
+ free(p2);