Skip to content
Snippets Groups Projects
  1. Oct 09, 2009
  2. Oct 07, 2009
  3. Oct 06, 2009
  4. Oct 05, 2009
  5. Oct 02, 2009
  6. Oct 01, 2009
    • Guido Trotter's avatar
      Master candidate stats, return one more value · e623dbe3
      Guido Trotter authored
      
      Other than returning the current number of candidates, and the number of
      desired and possible candidates, we also return the maximum possible
      number, even if greater than our desires. All callers for now ignore
      this third value.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      e623dbe3
    • Guido Trotter's avatar
      SingleActionPipeCondition =~ s/Action/Notify/ · 34cb5617
      Guido Trotter authored
      
      With this patch we simplify usage on the SingleActionCondition (which
      wasn't a condition at all) by making it a real condition. This way we
      can just wait() on it, or notifyAll() as we would on a normal one. The
      only catch is that notifyAll can be called only once, and wait can only
      be called before notifyAll has, but luckily our PipeCondition, now quite
      simplified, takes care of this, by providing a new SingleActionCondition
      each time the previous one has been notified.
      
      No Start/StopUsing function are needed anymore, and thus the condition
      is a lot more robust, and there's no way file descriptors can be left
      open, as they are closed in a finally block, in the same function where
      they were opened, by the last thread exiting the class.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      34cb5617
Loading