kokkos-execution
0.0.1
Toggle main menu visibility
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
6
#include "
kokkos-execution/stdexec.hpp
"
7
8
namespace
Tests::Utils::Functors
{
9
10
struct
StoreThreadID
{
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
stdexec.hpp
Tests::Utils::Functors
Definition
counter.hpp:6
Tests::Utils::Functors::StoreThreadID
Definition
store_thread_id.hpp:10
Tests::Utils::Functors::StoreThreadID::operator()
void operator()() const noexcept
Definition
store_thread_id.hpp:11
Tests::Utils::Functors::StoreThreadID::tid
std::thread::id * tid
Definition
store_thread_id.hpp:15
tests
utils
functors
store_thread_id.hpp
Generated on
for kokkos-execution by
1.18.0