diff options
author | 2015-09-29 14:38:01 -0700 | |
---|---|---|
committer | 2015-09-29 14:38:01 -0700 | |
commit | e4c17356b6c819df8effb29dfb4bb903520b8c2b (patch) | |
tree | b8a391f87ceb34e44ab4c26a19a941c048a01259 /include/private/SkThreadID.h | |
parent | b5d32635345d6a974ad2ceb826c3bfb98107ab79 (diff) |
Unify ThreadID.
BUG=skia:
Review URL: https://codereview.chromium.org/1371303003
Diffstat (limited to 'include/private/SkThreadID.h')
-rw-r--r-- | include/private/SkThreadID.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/private/SkThreadID.h b/include/private/SkThreadID.h new file mode 100644 index 0000000000..a210a929f3 --- /dev/null +++ b/include/private/SkThreadID.h @@ -0,0 +1,19 @@ +/* + * 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 "SkTypes.h" + +typedef int64_t SkThreadID; + +SkThreadID SkGetThreadID(); + +const SkThreadID kIllegalThreadID = 0; + +#endif // SkThreadID_DEFINED |