mn::system::basic_interrupts_lock Class Reference

#include <mn_interrupts_lock.hpp>

+ Inheritance diagram for mn::system::basic_interrupts_lock:
+ Collaboration diagram for mn::system::basic_interrupts_lock:

Public Member Functions

int lock (unsigned int timeout=0)
 
int unlock ()
 
- Public Member Functions inherited from mn::system::ISystemLockObject
virtual int time_lock (const struct timespec *timeout)
 
virtual bool is_initialized ()
 
- Public Member Functions inherited from mn::ILockObject
 ILockObject ()
 
virtual bool try_lock ()
 
virtual bool is_initialized () const =0
 
virtual bool is_locked () const =0
 Is locked? More...
 

Additional Inherited Members

- Public Types inherited from mn::ILockObject
using this_type = ILockObject
 

Detailed Description

This class is a lock helper for disable and enable the interrupts with auto_interrupts_lock_t guard

Member Function Documentation

◆ lock()

int mn::system::basic_interrupts_lock::lock ( unsigned int  timeout = 0)
virtual

Disable the interrupts

Returns
- NO_ERROR no errors

Implements mn::ILockObject.

◆ unlock()

int mn::system::basic_interrupts_lock::unlock ( )
virtual

Enable the interrupts

Returns
- NO_ERROR no errors

Implements mn::ILockObject.


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