src/raytracer.cc
branchpyrit
changeset 8 e6567b740c5e
parent 6 d8d596d26f25
child 10 f9fad94cd0cc
equal deleted inserted replaced
7:bf17f9f84c91 8:e6567b740c5e
   228 
   228 
   229 	// for each pixel...
   229 	// for each pixel...
   230 	vy = starty;
   230 	vy = starty;
   231 
   231 
   232 #ifdef PTHREADS
   232 #ifdef PTHREADS
   233 	int num_threads = 2;
   233 	int num_threads = 4;
   234 	printf("* pthreads enabled, using %d threads\n", num_threads);
   234 	printf("* pthreads enabled, using %d threads\n", num_threads);
   235 	pthread_t threads[num_threads];
   235 	pthread_t threads[num_threads];
   236 	for (int t = 0; t < num_threads; t++)
   236 	for (int t = 0; t < num_threads; t++)
   237 		threads[t] = pthread_self();
   237 		threads[t] = pthread_self();
   238 	int t = 0;
   238 	int t = 0;