cs_os.h 441 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * cs_os.h
  3. * Copyright (c) 2007-2018 ls
  4. **/
  5. #ifndef _CS_OS_H_INCLUDED_
  6. #define _CS_OS_H_INCLUDED_
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /*
  11. * cs_os_cpu_count
  12. * Return the number of CPUs.
  13. */
  14. CS_API cs_uint_t cs_os_cpu_count();
  15. CS_API cs_int_t cs_os_pagesize();
  16. #ifdef _WIN32
  17. /*
  18. * cs_os_is_winnt
  19. * Return 1 if Windows/NT, otherwise 0.
  20. */
  21. CS_API cs_int_t cs_os_is_winnt();
  22. #endif
  23. #ifdef __cplusplus
  24. }
  25. #endif /* C++ support */
  26. #endif