kokkos-execution
0.0.1
Loading...
Searching...
No Matches
show_thread_id.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_SHOW_THREAD_ID_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_SHOW_THREAD_ID_HPP
3
4
#include <iostream>
5
#include <thread>
6
7
#include "
kokkos-execution/stdexec.hpp
"
8
9
namespace
Tests::Utils::Functors
{
10
11
struct
ShowThreadID
{
12
void
operator()
()
const
{
13
std::cout << std::this_thread::get_id() << std::endl;
14
}
15
};
16
18
#define THEN_SHOW_THREAD_ID stdexec::then(Tests::Utils::Functors::ShowThreadID{})
19
20
}
// namespace Tests::Utils::Functors
21
22
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_SHOW_THREAD_ID_HPP
stdexec.hpp
Tests::Utils::Functors
Definition
counter.hpp:6
Tests::Utils::Functors::ShowThreadID
Definition
show_thread_id.hpp:11
Tests::Utils::Functors::ShowThreadID::operator()
void operator()() const
Definition
show_thread_id.hpp:12
tests
utils
functors
show_thread_id.hpp
Generated on
for kokkos-execution by
1.15.0