DiSMEC++
thread_id.h
Go to the documentation of this file.
1 // Copyright (c) 2022, Aalto University, developed by Erik Schultheis
2 // All rights reserved.
3 //
4 // SPDX-License-Identifier: MIT
5 
6 #ifndef DISMEC_SRC_PARALLEL_THREAD_ID_H
7 #define DISMEC_SRC_PARALLEL_THREAD_ID_H
8 
9 #include "utils/opaque_int.h"
10 
11 namespace dismec::parallel {
20  class thread_id_t : public opaque_int_type<thread_id_t> {
22  };
23 
27  class numa_node_id_t : public opaque_int_type<numa_node_id_t> {
29  };
30 
34  class cpu_id_t : public opaque_int_type<cpu_id_t> {
36  };
37 }
38 
39 #endif //DISMEC_SRC_PARALLEL_THREAD_ID_H
An integer-like type that represents categorical values.
Definition: opaque_int.h:24
constexpr opaque_int_type(T v) noexcept
! Explicit constructor from an underlying int.
Definition: opaque_int.h:29
Strong typedef for an int to signify a (core of a) cpu.
Definition: thread_id.h:34
Strong typedef for an int to signify a numa domain.
Definition: thread_id.h:27
Strong typedef for an int to signify a thread id.
Definition: thread_id.h:20