Zth (libzth)
zth::setName Class Reference

Change the name of a fiber returned by async. More...

#include <async.h>

Inheritance diagram for zth::setName:
zth::FiberManipulator

Public Member Functions

 setName (char const *name)
 
 setName (string const &name)
 
 setName (string &&name)
 
virtual ~setName () override=default
 

Protected Member Functions

virtual void apply (Fiber &fiber) const override
 
- Protected Member Functions inherited from zth::FiberManipulator
constexpr FiberManipulator () noexcept=default
 
virtual ~FiberManipulator ()=default
 

Detailed Description

Change the name of a fiber returned by async.

This is a manipulator that calls zth::Fiber::setName().

See also
zth::setStackSize() for an example
Examples
7_no_async.cpp.

Definition at line 167 of file async.h.

Constructor & Destructor Documentation

◆ setName() [1/3]

zth::setName::setName ( char const *  name)
inlineexplicit

Definition at line 170 of file async.h.

◆ setName() [2/3]

zth::setName::setName ( string const &  name)
inlineexplicit

Definition at line 174 of file async.h.

◆ setName() [3/3]

zth::setName::setName ( string &&  name)
inlineexplicit

Definition at line 177 of file async.h.

◆ ~setName()

virtual zth::setName::~setName ( )
overridevirtualdefault

Member Function Documentation

◆ apply()

virtual void zth::setName::apply ( Fiber fiber) const
inlineoverrideprotectedvirtual

Implements zth::FiberManipulator.

Definition at line 192 of file async.h.


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