Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phConditionCounter.h File Reference

#include <phStandard.h>
#include <phCondition.h>

Go to the source code of this file.

Classes

class  phConditionCounter
 This is a Condition Counter class that allows for threads to block while waiting for a specific value setting. Threads will call phConditionCounter::waitForValue with a value parameter and a conditional operation choice to compare the passed value with the counter value. In order to provide the condition variable functionality, this class inherits from the phCondition class. The phConditionCounter::waitForValue method is a convenience because it simplifies the code at higher levels when a specific value is desired where hard looping or sleeping will impact performance. The waiting doesn't return until the condition is met whereas phConditon will return whenever the condition is signaled. More...

Defines

#define phCHECK_NOT_EQUAL   (1<<0)
#define phCHECK_EQUAL   (1<<1)
#define phCHECK_GREATER_THAN   (1<<2)
#define phCHECK_LESS_THAN   (1<<3)
#define phCHECK_NE   phCHECK_NOT_EQUAL
#define phCHECK_E   phCHECK_EQUAL
#define phCHECK_GT   phCHECK_GREATER_THAN
#define phCHECK_LT   phCHECK_LESS_THAN
#define phCHECK_GREATER_THAN_EQUAL   (phCHECK_EQUAL | phCHECK_GT)
#define phCHECK_LESS_THAN_EQUAL   (phCHECK_EQUAL | phCHECK_LT)
#define phCHECK_GTE   phCHECK_GREATER_THAN_EQUAL
#define phCHECK_LTE   phCHECK_LESS_THAN_EQUAL
#define phConditionCounter_WAKEUP   (-2)




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:12 2007 for phission by  doxygen 1.4.4