LockedResourceHelper< ENTRY > Class Template Reference

#include <locked_resource_map.h>

Inheritance diagram for LockedResourceHelper< ENTRY >:

Detailed Description

template<typename ENTRY>
class maxon::LockedResourceHelper< ENTRY >

Helper class for LockedResourceMap THREADSAFE.

Public Member Functions

template<typename... TYPES>
 LockedResourceHelper (TYPES &&... args)
 
 LockedResourceHelper (LockedResourceHelper &&src)
 
 MAXON_OPERATOR_MOVE_ASSIGNMENT (LockedResourceHelper)
 
Result< void > CreateSignal ()
 
void DeleteSignal ()
 
ConditionVariableRef & GetSignal ()
 
void SetError (const Error &error)
 
Error GetError () const
 

Private Member Functions

 MAXON_DISALLOW_COPY_AND_ASSIGN (LockedResourceHelper)
 

Private Attributes

ConditionVariableRef _signal
 
Error _creationError
 

Constructor & Destructor Documentation

◆ LockedResourceHelper() [1/2]

LockedResourceHelper ( TYPES &&...  args)
explicit

◆ LockedResourceHelper() [2/2]

Member Function Documentation

◆ MAXON_DISALLOW_COPY_AND_ASSIGN()

MAXON_DISALLOW_COPY_AND_ASSIGN ( LockedResourceHelper< ENTRY >  )
private

◆ MAXON_OPERATOR_MOVE_ASSIGNMENT()

MAXON_OPERATOR_MOVE_ASSIGNMENT ( LockedResourceHelper< ENTRY >  )

◆ CreateSignal()

Result<void> CreateSignal ( )

◆ DeleteSignal()

void DeleteSignal ( )

◆ GetSignal()

ConditionVariableRef& GetSignal ( )

◆ SetError()

void SetError ( const Error &  error)

◆ GetError()

Error GetError ( void  ) const

Member Data Documentation

◆ _signal

ConditionVariableRef _signal
private

◆ _creationError

Error _creationError
private