zpp
Zephyr C++20 Framework
thread.hpp File Reference
#include <zpp/thread_prio.hpp>
#include <zpp/thread_id.hpp>
#include <zpp/thread_attr.hpp>
#include <zpp/thread_data.hpp>
#include <zpp/thread_stack.hpp>
#include <zpp/clock.hpp>
#include <zpp/result.hpp>
#include <zpp/error_code.hpp>
#include <zpp/heap.hpp>
#include <zephyr/kernel.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <functional>
#include <chrono>
#include <tuple>
#include <utility>
#include <memory>
Include dependency graph for thread.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zpp::thread
 The class thread repecents a single Zephyr thread. More...
 

Namespaces

 zpp
 
 zpp::this_thread
 provide functions that access the current thread of execution.
 

Functions

auto zpp::this_thread::get_id () noexcept
 Get the thread ID of the current thread. More...
 
void zpp::this_thread::yield () noexcept
 Yield the current thread. More...
 
template<class T_Rep , class T_Period >
void zpp::this_thread::busy_wait_for (const std::chrono::duration< T_Rep, T_Period > &wait_duration)
 Busy wait for a specified time duration. More...
 
template<class T_Rep , class T_Period >
auto zpp::this_thread::sleep_for (const std::chrono::duration< T_Rep, T_Period > &sleep_duration)
 Suspend the current thread for a specified time duration. More...
 
template<class T_Clock , class T_Duration >
void zpp::this_thread::sleep_until (const std::chrono::time_point< T_Clock, T_Duration > &sleep_time)
 Suspend the current thread until a specified time point. More...
 
void zpp::this_thread::abort () noexcept
 Abort the current thread. More...
 
void zpp::this_thread::suspend () noexcept
 Suspend the current thread. More...
 
thread_prio zpp::this_thread::get_priority () noexcept
 Get the current thread's priority. More...
 
void zpp::this_thread::set_priority (thread_prio prio) noexcept
 Set the current thread's priority. More...
 
template<class T >
std::decay< T >::type zpp::decay_copy (T &&v) noexcept