Lines Matching defs:thread_count
17 int thread_count = *(int*)(p);
20 if (thread_count > 0)
22 thread_count--;
23 // std::cout << "create " << thread_count << std::endl;
24 s_arg[thread_count] = thread_count;
27 pthread_create(&s_thread[thread_count], &attr, thread_func,
28 &s_arg[thread_count]);
31 std::cout << "created " << thread_count << "(" << s_thread[thread_count]
41 unsigned thread_count;
44 thread_count = argc > 1 ? atoi(argv[1]) : 50;
45 assert(thread_count <= sizeof(s_thread) / sizeof(s_thread[0]));
46 assert(thread_count >= 1);
47 thread_count--;
48 // std::cout << "create " << thread_count << std::endl;
51 pthread_create(&s_thread[thread_count], &attr, thread_func,
52 &thread_count);
55 std::cout << "created " << thread_count << "(" << s_thread[thread_count]
58 for (i = thread_count; i >= 0; i--)