2015-09-29 21:38:01 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "include/core/SkTypes.h"
|
2015-09-29 21:38:01 +00:00
|
|
|
|
|
|
|
typedef int64_t SkThreadID;
|
|
|
|
|
2020-07-07 21:14:36 +00:00
|
|
|
// SkMutex.h uses SkGetThredID in debug only code.
|
|
|
|
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID();
|
2015-09-29 21:38:01 +00:00
|
|
|
|
|
|
|
const SkThreadID kIllegalThreadID = 0;
|
|
|
|
|
|
|
|
#endif // SkThreadID_DEFINED
|