gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LockableOffset Class Reference

#include <IPCListener.hpp>

Inheritance diagram for LockableOffset:
Inheritance graph
Collaboration diagram for LockableOffset:
Collaboration graph

Public Member Functions

 LockableOffset ()
 
bool isReady ()
 Get Internal ready flag. More...
 
void setReady (bool ready)
 Sets ready flag. More...
 
- Public Member Functions inherited from Lockable
 Lockable ()
 
void get ()
 Acquires lock. More...
 
void put ()
 Releases lock. More...
 

Additional Inherited Members

- Public Attributes inherited from Offset
int64_t ml_phoffset
 
FrequencyRatio ml_freqoffset
 
int64_t ls_phoffset
 
FrequencyRatio ls_freqoffset
 
uint64_t local_time
 

Detailed Description

Provides an interface for offset with lock

Constructor & Destructor Documentation

LockableOffset::LockableOffset ( )
inline

Default constructor. Initializes internal variables

Member Function Documentation

bool LockableOffset::isReady ( )
inline

Get Internal ready flag.

Returns
TRUE if is ready. FALSE otherwise.
void LockableOffset::setReady ( bool  ready)
inline

Sets ready flag.

Parameters
readyValue to be set.

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