#ifndef INCLUDE_PERFETTO_PUBLIC_ABI_THREAD_UTILS_ABI_H_
#define INCLUDE_PERFETTO_PUBLIC_ABI_THREAD_UTILS_ABI_H_
#include <stdint.h>
#include "perfetto/public/abi/export.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__Fuchsia__)
#include <zircon/types.h>
#elif defined(__linux__)
#include <sys/types.h>
#include <unistd.h>
#elif defined(__APPLE__) || defined(_WIN32)
#include <stdint.h>
#else
#include <pthread.h>
#endif
#if defined(__linux__) || defined(__native_client__)
PerfettoThreadId;
#elif defined(__Fuchsia__)
typedef zx_koid_t PerfettoThreadId;
#elif defined(__APPLE__) || defined(_WIN32)
typedef uint64_t PerfettoThreadId;
#else
typedef pthread_t PerfettoThreadId;
#endif
PERFETTO_SDK_EXPORT PerfettoThreadId PerfettoGetThreadIdImpl(void);
#ifdef __cplusplus
}
#endif
#endif