Blog
Community
Development
Documentation
CNDP
22.08.0
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