Lines Matching refs:thread
2 * Test program that uses std::string object from more than one thread and
48 pthread_t thread[2];
50 for (int i = 0; i < sizeof(thread)/sizeof(thread[0]); i++) {
51 int ret = pthread_create(&thread[i], NULL, &fillTable, NULL);
53 fprintf(stderr, "Failed to create thread %d: %d\n", i, ret);
58 for (int i = 0; i < sizeof(thread)/sizeof(thread[0]); i++) {
59 int ret = pthread_join(thread[i], NULL);
61 fprintf(stderr, "Failed to join thread %d: %d\n", i, ret);