Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
thread_private.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2019-2022 Intel Corporation
3
*/
4
5
#ifndef _THREAD_PRIVATE_H_
6
#define _THREAD_PRIVATE_H_
7
8
#include <pthread.h>
9
#include <
uid.h
>
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
#define THREAD_MAGIC_ID 0x20180403
21
22
typedef
void (*
thd_func_t
)(
void
*);
24
struct
thd_state {
25
char
name[CNE_NAME_LEN];
26
uint32_t magic_id;
27
uint32_t running;
28
uintptr_t pid;
29
void
*priv_;
30
} __cne_cache_aligned;
31
32
struct
thd_params {
33
char
name[CNE_NAME_LEN];
34
thd_func_t
start_routine;
35
void
*arg;
36
pthread_barrier_t barrier;
37
int
tidx;
38
};
39
40
typedef
struct
thd_state thd_state_t;
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
/* _THREAD_PRIVATE_H_ */
thd_func_t
void(* thd_func_t)(void *)
Definition:
thread_private.h:22
uid.h
lib
usr
clib
thread
thread_private.h
Generated by
1.9.1