bmk_cores_win32.bmx 287 B

123456789101112131415161718
  1. SuperStrict
  2. Import "bmk_cores_win32.c"
  3. Extern
  4. Function bmx_GetSystemInfo_dwNumberOfProcessors:Int()
  5. End Extern
  6. Function GetCoreCount:Int()
  7. Global count:Int
  8. If Not count Then
  9. count = bmx_GetSystemInfo_dwNumberOfProcessors()
  10. End If
  11. Return count
  12. End Function