rmw_fastrtps_shared_cpp  master
Code shared on static and dynamic type support of rmw_fastrtps_cpp.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
LockedObject< T > Class Template Reference

#include <locked_object.hpp>

Public Member Functions

std::mutexgetMutex () const RCPPUTILS_TSA_RETURN_CAPABILITY(mutex_)
 
T & operator() ()
 
const T & operator() () const
 

Member Function Documentation

◆ getMutex()

template<class T >
std::mutex& LockedObject< T >::getMutex ( ) const
inline
Returns
a reference to this object to lock.

◆ operator()() [1/2]

template<class T >
T& LockedObject< T >::operator() ( )
inline

◆ operator()() [2/2]

template<class T >
const T& LockedObject< T >::operator() ( ) const
inline

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