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

#include <linux_hal_common.hpp>

Inheritance diagram for LinuxCondition:
Inheritance graph
Collaboration diagram for LinuxCondition:
Collaboration graph

Public Member Functions

bool wait_prelock ()
 Counts up the amount of times we call the locking mechanism. More...
 
bool wait ()
 Waits until the ready signal condition is met and decrements the counter.
 
bool signal ()
 Unblock all threads that are busy waiting for a condition. More...
 
- Public Member Functions inherited from OSCondition
virtual ~OSCondition ()=0
 

Protected Member Functions

bool initialize ()
 Initializes locks and mutex conditions. More...
 
- Protected Member Functions inherited from OSCondition
 OSCondition ()
 
void up ()
 Counts up waiting condition. More...
 
void down ()
 Conds down waiting condition. More...
 
bool waiting ()
 Checks if OS is waiting. More...
 

Friends

class LinuxConditionFactory
 

Detailed Description

Extends OSCondition class to Linux

Member Function Documentation

bool LinuxCondition::initialize ( )
protected

Initializes locks and mutex conditions.

Returns
TRUE if it is ok, FALSE in case of error
bool LinuxCondition::signal ( )
virtual

Unblock all threads that are busy waiting for a condition.

Returns
TRUE

Implements OSCondition.

bool LinuxCondition::wait_prelock ( )
virtual

Counts up the amount of times we call the locking mechanism.

Returns
TRUE after incrementing the counter.

Implements OSCondition.


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