[cvs] / xvidcore / src / xvid.c Repository:
ViewVC logotype

Diff of /xvidcore/src/xvid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.67, Mon Jan 9 00:39:43 2006 UTC revision 1.68, Sat Feb 25 04:41:12 2006 UTC
# Line 714  Line 714 
714          info->actual_version = XVID_VERSION;          info->actual_version = XVID_VERSION;
715          info->build = "xvid-1.2.0-dev";          info->build = "xvid-1.2.0-dev";
716          info->cpu_flags = detect_cpu_flags();          info->cpu_flags = detect_cpu_flags();
   
 #if defined(_SMP) && defined(WIN32)  
         info->num_threads = pthread_num_processors_np();;  
 #else  
717          info->num_threads = 0;          info->num_threads = 0;
718    
719    #if defined(WIN32)
720      {
721        DWORD dwProcessAffinityMask, dwSystemAffinityMask;
722        if (GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask)) {
723          int i;
724          for(i=0; i<32; i++) {
725            if ((dwProcessAffinityMask & (1<<i)))
726              info->num_threads++;
727          }
728        }
729      }
730  #endif  #endif
731    
732          return 0;          return 0;

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4