2 * Copyright 2012 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkCountdown_DEFINED
9 #define SkCountdown_DEFINED
11 #include "SkCondVar.h"
12 #include "SkRunnable.h"
15 class SkCountdown : public SkRunnable {
17 explicit SkCountdown(int32_t count);
20 * Resets the countdown to the count provided.
22 void reset(int32_t count);
24 virtual void run() SK_OVERRIDE;
27 * Blocks until run() has been called count times.