Home | History | Annotate | Download | only in openfile

Lines Matching refs:threads

71 void *threads(void *thread_id);
102 printf("Usage: openfile [-d] -f FILES -t THREADS\n");
107 printf("Usage: openfile [-d] -f FILES -t THREADS\n");
122 sprintf(msg, "%s\nCannot use %d threads", msg, numthreads);
123 sprintf(msg, "%s, used %d threads instead\n", msg, MAXTHREADS);
147 printf("Creating Reading Threads\n");
149 /* Create threads */
151 if (pthread_create(&th_id, NULL, threads,
160 /* Sleep until all threads are created */
164 "error while waiting for reading threads");
170 /* Wake up all threads */
172 tst_resm(TFAIL, "failed trying to wake up reading threads");
185 tst_resm(TPASS, "Threads are done reading");
205 /* threads: Each thread opens the files specified */
206 void *threads(void *thread_id_)