50332926671273b74d1e03a161dc643fffca5abc
[dpdk.git] / lib / librte_eal / windows / eal / include / pthread.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #ifndef _PTHREAD_H_
6 #define _PTHREAD_H_
7
8 /**
9  * This file is required to support the common code in eal_common_proc.c,
10  * eal_common_thread.c and common\include\rte_per_lcore.h as Microsoft libc
11  * does not contain pthread.h. This may be removed in future releases.
12  */
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 /* defining pthread_t type on Windows since there is no in Microsoft libc*/
18 typedef uintptr_t pthread_t;
19
20 /* defining pthread_attr_t type on Windows since there is no in Microsoft libc*/
21 typedef void *pthread_attr_t;
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif /* _PTHREAD_H_ */