bool ConditionVariable::Event::ValidateAsList() const
 {
     return (0 == handle_) && ValidateLinks();
 }
 // Provide pre/post conditions to validate correct manipulations.
 bool ConditionVariable::Event::ValidateAsDistinct(Event* other) const
 {
     return ValidateLinks() && other->ValidateLinks() && (this != other);
 }
 // Method for use on a list element or on a list.
 bool ConditionVariable::Event::IsSingleton() const
 {
     DCHECK(ValidateLinks());
     return next_ == this;
 }
Beispiel #4
0
bool OSCondVarOld::Event::ValidateAsList() const
{
    return (0 == handle_) && ValidateLinks();
}
Beispiel #5
0
bool OSCondVarOld::Event::ValidateAsItem() const
{
    return (0 != handle_) && ValidateLinks();
}
Beispiel #6
0
bool OSCondVarOld::Event::ValidateAsDistinct(Event *other) const
{
    return ValidateLinks() && other->ValidateLinks() && (this != other);
}