blob: e14388b3de5bda45c2a9ff853fd2d1e10bf54a77 [file] [log] [blame]
herbe4c17352015-09-29 14:38:01 -07001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkTypes.h"
herbe4c17352015-09-29 14:38:01 -070012
13typedef int64_t SkThreadID;
14
Ben Wagnerb3707252020-07-07 17:14:36 -040015// SkMutex.h uses SkGetThredID in debug only code.
16SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID();
herbe4c17352015-09-29 14:38:01 -070017
18const SkThreadID kIllegalThreadID = 0;
19
20#endif // SkThreadID_DEFINED