zpp
Zephyr C++20 Framework
zpp::sched_lock_guard Class Reference

Guard to automatically lock/unlock scheduler. More...

#include <sched.hpp>

Public Member Functions

 sched_lock_guard () noexcept
 Default constructor that calls scheck_lock() More...
 
 ~sched_lock_guard ()
 Destructor that calls sched_unlock() More...
 
 sched_lock_guard (const sched_lock_guard &)=delete
 
sched_lock_guardoperator= (const sched_lock_guard &)=delete
 
 sched_lock_guard (sched_lock_guard &&) noexcept=delete
 
sched_lock_guardoperator= (sched_lock_guard &&) noexcept=delete
 

Detailed Description

Guard to automatically lock/unlock scheduler.

Definition at line 34 of file sched.hpp.

Constructor & Destructor Documentation

◆ sched_lock_guard() [1/3]

zpp::sched_lock_guard::sched_lock_guard ( )
inlinenoexcept

Default constructor that calls scheck_lock()

Definition at line 39 of file sched.hpp.

40  {
41  sched_lock();
42  }
void sched_lock() noexcept
Lock the scheduler.
Definition: sched.hpp:18

References zpp::sched_lock().

◆ ~sched_lock_guard()

zpp::sched_lock_guard::~sched_lock_guard ( )
inline

Destructor that calls sched_unlock()

Definition at line 47 of file sched.hpp.

48  {
49  sched_unlock();
50  }
void sched_unlock() noexcept
Unlock the scheduler.
Definition: sched.hpp:26

References zpp::sched_unlock().

◆ sched_lock_guard() [2/3]

zpp::sched_lock_guard::sched_lock_guard ( const sched_lock_guard )
delete

◆ sched_lock_guard() [3/3]

zpp::sched_lock_guard::sched_lock_guard ( sched_lock_guard &&  )
deletenoexcept

Member Function Documentation

◆ operator=() [1/2]

sched_lock_guard& zpp::sched_lock_guard::operator= ( const sched_lock_guard )
delete

◆ operator=() [2/2]

sched_lock_guard& zpp::sched_lock_guard::operator= ( sched_lock_guard &&  )
deletenoexcept

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