Class representing a single thread of execution. More...
#include <dius/thread.h>
Public Types | |
| using | Id = di::ThreadId | 
Public Member Functions | |
| Thread ()=default | |
| Thread (Thread const &)=delete | |
| Thread (Thread &&other) | |
| ~Thread () | |
| auto | operator= (Thread const &) -> Thread &=delete | 
| auto | operator= (Thread &&other) -> Thread & | 
| auto | joinable () const -> bool | 
| auto | get_id () const -> Id | 
| auto | join () -> di::Result< void > | 
| Wait for the spawned thread's execution to terminate.   | |
Static Public Member Functions | |
| template<di::concepts::MovableValue F, di::concepts::MovableValue... Args>  requires (di::concepts::InvocableTo<F, void, Args...>)  | |
| static auto | create (F &&function, Args &&... args) -> di::Result< Thread > | 
Friends | |
| void | tag_invoke (di::Tag< di::swap >, Thread &a, Thread &b) | 
Class representing a single thread of execution.
This class is modeled after the C++ standard library std::thread.
| using dius::Thread::Id = di::ThreadId | 
      
  | 
  default | 
      
  | 
  delete | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlinestatic | 
      
  | 
  inlinenodiscard | 
      
  | 
  inline | 
Wait for the spawned thread's execution to terminate.
      
  | 
  inlinenodiscard |