xref: /aosp_15_r20/external/skia/include/private/base/SkThreadID.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2015 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkThreadID_DEFINED
9 #define SkThreadID_DEFINED
10 
11 #include "include/private/base/SkAPI.h"
12 #include "include/private/base/SkDebug.h"
13 
14 #include <cstdint>
15 
16 typedef int64_t SkThreadID;
17 
18 // SkMutex.h uses SkGetThreadID in debug only code.
19 SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID();
20 
21 const SkThreadID kIllegalThreadID = 0;
22 
23 #endif  // SkThreadID_DEFINED
24