Zth (libzth)
zth::Future< void > Class Reference

#include <sync.h>

Inheritance diagram for zth::Future< void >:
zth::Synchronizer zth::RefCounted zth::UniqueID< Synchronizer > zth::UniqueIDBase

Public Types

typedef void type
 

Public Member Functions

 Future (cow_string const &name="Future")
 
 Future (cow_string &&name)
 
virtual ~Future () override=default
 
bool valid () const noexcept
 
 operator bool () const noexcept
 
void wait ()
 
void set () noexcept
 
- Public Member Functions inherited from zth::Synchronizer
 Synchronizer (cow_string const &name="Synchronizer")
 
 Synchronizer (cow_string &&name)
 
virtual ~Synchronizer () override
 
- Public Member Functions inherited from zth::RefCounted
 RefCounted () noexcept
 
virtual ~RefCounted ()=default
 
void used () noexcept
 
void unused ()
 
- Public Member Functions inherited from zth::UniqueID< Synchronizer >
 UniqueID (UniqueID const &)=delete
 
 UniqueID (UniqueID &&u) noexcept
 
 UniqueID (string const &name)
 
 UniqueID (string &&name)
 
 UniqueID (char const *name=nullptr)
 
UniqueIDoperator= (UniqueID const &)=delete
 
UniqueIDoperator= (UniqueID &&u) noexcept
 
virtual ~UniqueID ()=default
 
void const * normptr () const noexcept
 
uint64_t id () const noexcept
 
string const & name () const noexcept
 
void setName (string const &name)
 
void setName (char const *name)
 
void setName (string &&name)
 
virtual char const * id_str () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from zth::UniqueID< Synchronizer >
static uint64_t getID () noexcept
 
- Protected Member Functions inherited from zth::Synchronizer
void block ()
 
bool unblock (Fiber &f) noexcept
 Unblock the specific fiber. More...
 
bool unblockFirst () noexcept
 
bool unblockAll () noexcept
 
bool block (Timestamp const &timeout, Timestamp const &now=Timestamp::now())
 Block, with timeout. More...
 
bool block (TimeInterval const &timeout, Timestamp const &now=Timestamp::now())
 Block, with timeout. More...
 
- Protected Member Functions inherited from zth::UniqueIDBase
virtual ~UniqueIDBase ()=default
 

Detailed Description

Definition at line 704 of file sync.h.

Member Typedef Documentation

◆ type

typedef void zth::Future< void >::type

Definition at line 707 of file sync.h.

Constructor & Destructor Documentation

◆ Future() [1/2]

zth::Future< void >::Future ( cow_string const &  name = "Future< void >")
inlineexplicit

Definition at line 709 of file sync.h.

◆ Future() [2/2]

zth::Future< void >::Future ( cow_string &&  name)
inlineexplicit

Definition at line 715 of file sync.h.

◆ ~Future()

virtual zth::Future< void >::~Future ( )
overridevirtualdefault

Member Function Documentation

◆ operator bool()

zth::Future< void >::operator bool ( ) const
inlinenoexcept

Definition at line 727 of file sync.h.

◆ set()

void zth::Future< void >::set ( )
inlinenoexcept

Definition at line 738 of file sync.h.

◆ valid()

bool zth::Future< void >::valid ( ) const
inlinenoexcept

Definition at line 723 of file sync.h.

◆ wait()

void zth::Future< void >::wait ( )
inline

Definition at line 732 of file sync.h.


The documentation for this class was generated from the following file: