kokkos-execution 0.0.1
Loading...
Searching...
No Matches
store_thread_id.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_STORE_THREAD_ID_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_STORE_THREAD_ID_HPP
3
4#include <thread>
5
7
9
11 void operator()() const noexcept {
12 *tid = std::this_thread::get_id();
13 }
14
15 std::thread::id* tid;
16};
17
19#define THEN_STORE_THREAD_ID(__id__) stdexec::then(Tests::Utils::Functors::StoreThreadID{__id__})
20
21} // namespace Tests::Utils::Functors
22
23#endif // KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_STORE_THREAD_ID_HPP