CoreDX DDS for Java
from Twin Oaks Computing, Inc.

com.toc.coredx.DDS
Class GuardCondition

java.lang.Object
  extended by com.toc.coredx.DDS.Condition
      extended by com.toc.coredx.DDS.GuardCondition

public class GuardCondition
extends Condition

A GuardCondition is a Condition where the trigger_value is under application control.


Constructor Summary
GuardCondition()
          This routine creates a GuardCondition.
 
Method Summary
 void set_trigger_value(boolean trigger)
          This routine set the current value of the trigger_value in gc.
 
Methods inherited from class com.toc.coredx.DDS.Condition
get_trigger_value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardCondition

public GuardCondition()
This routine creates a GuardCondition.

Method Detail

set_trigger_value

public void set_trigger_value(boolean trigger)
This routine set the current value of the trigger_value in gc.

A true v argument indicates that the trigger_value is TRUE.

A false v argument indicates that the trigger_value is FALSE.

Setting the trigger value to a true state will cause any threads that are waiting on a WaitSet with this GuardCondition attached to unblock. [In other words, the WaitSet.wait() routine will return if the WaitSet has this GuardCondition attached to it.]

See Also:
WaitSet

Copyright © 2010 Twin Oaks Computing, Inc,
All Rights Reserved