Changeset 5422

Show
Ignore:
Timestamp:
08/11/06 10:25:09
Author:
robert
Message:

Added useage of GetSystemInfo? to return the number of processors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/win32_src/Win32Thread.cpp

    r5417 r5422  
    641641int OpenThreads::GetNumberOfProcessors() 
    642642{ 
    643     return 1; 
    644 
     643    SYSTEM_INFO sysInfo; 
     644    GetSystemInfo(&sysInfo); 
     645 
     646    return sysInfo.dwNumberOfProcessors; 
     647