thread_id.h 680 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <util/generic/ylimits.h>
  3. #include <util/system/types.h>
  4. namespace NYT {
  5. ////////////////////////////////////////////////////////////////////////////////
  6. using TSystemThreadId = size_t;
  7. constexpr TSystemThreadId InvalidSystemThreadId = Max<TSystemThreadId>();
  8. TSystemThreadId GetSystemThreadId();
  9. using TSequentialThreadId = ui32;
  10. constexpr TSequentialThreadId InvalidSequentialThreadId = Max<TSequentialThreadId>();
  11. TSequentialThreadId GetSequentialThreadId();
  12. ////////////////////////////////////////////////////////////////////////////////
  13. } // namespace NYT::NThreading
  14. #define THREAD_ID_INL_H_
  15. #include "thread_id-inl.h"
  16. #undef THREAD_ID_INL_H_