aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp/api/plat/thread_inline_types.h
blob: c9a15b06b8ef7348e4b04c798a98a93fb4b33814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (c) 2018-2018, Linaro Limited
 * Copyright (c) 2022, Nokia
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef ODP_PLAT_THREAD_INLINE_TYPES_H_
#define ODP_PLAT_THREAD_INLINE_TYPES_H_

#include <odp/api/init.h>
#include <odp/api/spec/thread_types.h>

#ifdef __cplusplus
extern "C" {
#endif

/** @cond _ODP_HIDE_FROM_DOXYGEN_ */

typedef struct {
	odp_log_func_t log_fn;
	odp_thread_type_t type;
	int thr;
	int cpu;

} _odp_thread_state_t;

extern __thread _odp_thread_state_t *_odp_this_thread;

/** @endcond */

#ifdef __cplusplus
}
#endif

#endif