src/raytracer.cc
branchpyrit
changeset 83 e3a2a5b26abb
parent 82 930a2d3ecaed
child 84 6f7fe14782c2
equal deleted inserted replaced
82:930a2d3ecaed 83:e3a2a5b26abb
   402 
   402 
   403 			pthread_cond_signal(&sample_queue_cond);
   403 			pthread_cond_signal(&sample_queue_cond);
   404 			pthread_mutex_unlock(&sample_queue_mutex);
   404 			pthread_mutex_unlock(&sample_queue_mutex);
   405 
   405 
   406 			sampdone += my_count;
   406 			sampdone += my_count;
   407 			dbgmsg(2, "\b\b\b\b\b\b\b\b%2d%% done", (sampdone - sample_queue_count)*100/sampnum);
   407 			dbgmsg(2, "\b\b\b\b\b\b\b\b%2d%% done", ((long)sampdone - sample_queue_count)*100/sampnum);
   408 
   408 
   409 			pthread_mutex_lock(&sampler_mutex);
   409 			pthread_mutex_lock(&sampler_mutex);
   410 
   410 
   411 			if (!more_samples)
   411 			if (!more_samples)
   412 				break;
   412 				break;