/* * 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 SkSpinlock_DEFINED #define SkSpinlock_DEFINED #include "include/private/base/SkAPI.h" #include "include/private/base/SkThreadAnnotations.h" #include <atomic> class SK_CAPABILITY("mutex") SkSpinlock { … }; class SK_SCOPED_CAPABILITY SkAutoSpinlock { … }; #endif//SkSpinlock_DEFINED