timer.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2006-2018 Maxim Khizhinsky
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef CDSLIB_OS_TIMER_H
  6. #define CDSLIB_OS_TIMER_H
  7. #include <cds/details/defs.h>
  8. #if CDS_OS_TYPE == CDS_OS_WIN32 || CDS_OS_TYPE == CDS_OS_WIN64 || CDS_OS_TYPE == CDS_OS_MINGW
  9. # include <cds/os/win/timer.h>
  10. #elif CDS_OS_TYPE == CDS_OS_LINUX
  11. # include <cds/os/linux/timer.h>
  12. #elif CDS_OS_TYPE == CDS_OS_SUN_SOLARIS
  13. # include <cds/os/sunos/timer.h>
  14. #elif CDS_OS_TYPE == CDS_OS_HPUX
  15. # include <cds/os/hpux/timer.h>
  16. #elif CDS_OS_TYPE == CDS_OS_AIX
  17. # include <cds/os/aix/timer.h>
  18. #elif CDS_OS_TYPE == CDS_OS_FREE_BSD
  19. # include <cds/os/free_bsd/timer.h>
  20. #elif CDS_OS_TYPE == CDS_OS_OSX
  21. # include <cds/os/osx/timer.h>
  22. #elif CDS_OS_TYPE == CDS_OS_PTHREAD || CDS_OS_INTERFACE == CDS_OSI_UNIX
  23. # include <cds/os/posix/timer.h>
  24. #else
  25. //************************************************************************
  26. // Other OSes
  27. //************************************************************************
  28. # error Unknown operating system. Compilation aborted.
  29. #endif
  30. #endif // #ifndef CDSLIB_OS_TIMER_H