Lines Matching refs:threads
177 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * num_threads);
178 if (threads == NULL) {
185 if (pthread_create(&(threads[last]), NULL, test, NULL)) {
193 if (pthread_join(threads[i], NULL)) {
198 free(threads);
205 pthread_t *threads = (pthread_t *) malloc(sizeof(pthread_t) * (num_threads1 + num_threads2));
206 if (threads == NULL) {
213 if (pthread_create(&(threads[last]), NULL, test1, NULL)) {
221 if (pthread_create(&(threads[last]), NULL, test2, NULL)) {
229 if (pthread_join(threads[i], NULL)) {
234 free(threads);
327 * @tc.desc : multithreaded dlsym, dlsym should not be blocked by dlsym in other threads.
346 * @tc.desc : malloc and fork in different threads to check that there is no ABBA deadlock