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
▼
CNDP
API
CNDP Example Programs
►
Data Structures
▼
Files
►
File List
►
Globals
►
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cthread_mutex.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2019-2022 Intel Corporation
3
*/
4
5
#ifndef _CTHREAD_MUTEX_H_
6
#define _CTHREAD_MUTEX_H_
7
8
#include "cthread_queue.h"
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
#define MAX_MUTEX_NAME_SIZE 32
15
16
struct
cthread_mutex {
17
struct
cthread
*owner;
18
CNE_ATOMIC
(uint_least16_t) waiters;
19
struct
cthread_queue *blocked
__cne_cache_aligned
;
20
struct
cthread_sched
*sched;
21
uint32_t flags;
22
char
name[MAX_MUTEX_NAME_SIZE];
23
}
__cne_cache_aligned
;
24
25
#ifdef __cplusplus
26
}
27
#endif
28
29
#endif
/* _CTHREAD_MUTEX_H_ */
__cne_cache_aligned
#define __cne_cache_aligned
Definition:
cne_common.h:379
cthread_sched
Definition:
cthread_int.h:72
cthread
Definition:
cthread_int.h:159
cthread::CNE_ATOMIC
CNE_ATOMIC(uint_least64_t) join
lib
usr
clib
cthread
cthread_mutex.h
Generated by
1.9.1