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.


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...


#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_E   phCHECK_EQUAL
#define phConditionCounter_WAKEUP   (-2)

Copyright (C) 2002 - 2007 Philip D.S. Thoren ( )
University Of Massachusetts at Lowell
Robotics Lab Logo

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