tuklib_cpucores.h 606 B

1234567891011121314151617181920212223
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. /// \file tuklib_cpucores.h
  4. /// \brief Get the number of CPU cores online
  5. //
  6. // Author: Lasse Collin
  7. //
  8. // This file has been put into the public domain.
  9. // You can do whatever you want with this file.
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. #ifndef TUKLIB_CPUCORES_H
  13. #define TUKLIB_CPUCORES_H
  14. #include "tuklib_common.h"
  15. TUKLIB_DECLS_BEGIN
  16. #define tuklib_cpucores TUKLIB_SYMBOL(tuklib_cpucores)
  17. extern uint32_t tuklib_cpucores(void);
  18. TUKLIB_DECLS_END
  19. #endif