src/raytracer.cc
branchpyrit
changeset 16 20bceb605f48
parent 15 a0a3e334744f
child 19 4e0955fca797
equal deleted inserted replaced
15:a0a3e334744f 16:20bceb605f48
   219 	Vector3 eye(0, 0, -5);
   219 	Vector3 eye(0, 0, -5);
   220 
   220 
   221 	vy = starty;
   221 	vy = starty;
   222 
   222 
   223 #ifdef PTHREADS
   223 #ifdef PTHREADS
   224 	int num_threads = 4;
       
   225 	printf("* pthreads enabled, using %d threads\n", num_threads);
   224 	printf("* pthreads enabled, using %d threads\n", num_threads);
   226 	pthread_t threads[num_threads];
   225 	pthread_t threads[num_threads];
   227 	for (int t = 0; t < num_threads; t++)
   226 	for (int t = 0; t < num_threads; t++)
   228 		threads[t] = pthread_self();
   227 		threads[t] = pthread_self();
   229 	int t = 0;
   228 	int t = 0;