skia2/include/private/SkThreadID.h
Ben Wagner b37072556a Mark SkGetThreadID SK_SPI in debug.
Bug: skia:10381
Change-Id: I92feb4a668738d7f9375a6f204c663f1eb1b3a9b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301009
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-07-07 21:50:55 +00:00

21 lines
434 B
C

/*
* 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 SkThreadID_DEFINED
#define SkThreadID_DEFINED
#include "include/core/SkTypes.h"
typedef int64_t SkThreadID;
// SkMutex.h uses SkGetThredID in debug only code.
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID();
const SkThreadID kIllegalThreadID = 0;
#endif // SkThreadID_DEFINED