Lines Matching defs:threads
63 to stop creating new threads (signal caught) */
65 int indice = 0; /* # of threads created, to be canceled by handle_signals
69 pthread_t *threads;
193 "%s: will run %d functions, %d threads per function",
205 * Start all calculation threads...
207 threads = malloc(nb_func * num_threads * sizeof(pthread_t));
208 if (threads == NULL)
254 retval = pthread_create(&threads[indice], &newattr,
264 /*alarm(60*time); *//* start all threads for TEST_time */
267 * Wait for the threads finish their task
274 "initial thread: Waiting for %d threads to finish",
280 retvalend = pthread_join(threads[th_num], &exit_value);
305 SAFE_FREE(threads);
319 | If SIGALRM or SIGUSR1 or SIGINT : cancel threads |
360 * Have to signal all non started threads...
386 pthread_cancel(threads[thd]);