CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
NoLock Class Reference

Class that implements the locking concept but does not perform locking. More...

#include <locks.hh>

Public Member Functions

bool try_lock (TimeoutArgument timeout)
 Attempt to acquire the lock with a timeout.
bool try_lock ()
 Try to acquire the lock, do not block.
void lock ()
 Acquire the lock.
void unlock ()
 Release the lock.

Detailed Description

Class that implements the locking concept but does not perform locking.

This is intended to be used with templated data structures that support locking, for instantiations that do not require locking.

Definition at line 244 of file locks.hh.

Member Function Documentation

◆ lock()

void NoLock::lock ( )
inline

Acquire the lock.

Always succeeds

Definition at line 266 of file locks.hh.

◆ try_lock() [1/2]

bool NoLock::try_lock ( )
inline

Try to acquire the lock, do not block.

Always succeeds.

Definition at line 258 of file locks.hh.

◆ try_lock() [2/2]

bool NoLock::try_lock ( TimeoutArgument timeout)
inline

Attempt to acquire the lock with a timeout.

Always succeeds.

Definition at line 250 of file locks.hh.

◆ unlock()

void NoLock::unlock ( )
inline

Release the lock.

Does nothing.

Definition at line 271 of file locks.hh.


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