blob: 5dc06925c0b000893b291e005cf7753553817cc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include <util/generic/ylimits.h>
#include <util/system/types.h>
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
using TSystemThreadId = size_t;
constexpr TSystemThreadId InvalidSystemThreadId = Max<TSystemThreadId>();
TSystemThreadId GetSystemThreadId();
using TSequentialThreadId = ui32;
constexpr TSequentialThreadId InvalidSequentialThreadId = Max<TSequentialThreadId>();
TSequentialThreadId GetSequentialThreadId();
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NThreading
#define THREAD_ID_INL_H_
#include "thread_id-inl.h"
#undef THREAD_ID_INL_H_
|