/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkSemaphore_DEFINED #define SkSemaphore_DEFINED #include "include/private/base/SkAPI.h" #include "include/private/base/SkOnce.h" #include "include/private/base/SkThreadAnnotations.h" #include <algorithm> #include <atomic> class SkSemaphore { … }; inline void SkSemaphore::signal(int n) { … } inline void SkSemaphore::wait() { … } #endif//SkSemaphore_DEFINED