Searched refs:threads (Results 1 - 1 of 1) sorted by relevance
/lxc/src/tests/ |
H A D | concurrent.c | 38 { "threads", required_argument, NULL, 'j' }, 52 " -j, --threads=N Threads to run concurrently\n" 149 pthread_t *threads; local 200 threads = malloc(sizeof(*threads) * nthreads); 202 if (threads == NULL || args == NULL) { 203 fprintf(stderr, "Unable malloc enough memory for %d threads\n", nthreads); 227 if (pthread_create(&threads[j], &attr, concurrent, (void *) &args[j]) != 0) { 238 if (pthread_join(threads[j], NULL) != 0) { 252 free(threads); [all...] |
Completed in 14 milliseconds