Blog
Community
Development
Documentation
CNDP
22.08.0
cthread_once.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright (c) 2019-2022 Intel Corporation
3
*/
4
5
#ifndef _CTHREAD_ONCE_H_
6
#define _CTHREAD_ONCE_H_
7
8
#include "cthread_queue.h"
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
struct
cthread_once
{
15
struct
cthread_sched
*sched;
16
atomic_uint_least32_t count;
17
struct
cthread_mutex *mutex;
18
}
__cne_cache_aligned
;
19
20
#ifdef __cplusplus
21
}
22
#endif
23
24
#endif
/* _CTHREAD_ONCE_H_ */
__cne_cache_aligned
#define __cne_cache_aligned
Definition:
cne_common.h:379
cthread_once
CNDP_API int cthread_once(struct cthread_once *once, int(*func)(void *), void *arg)
cthread_sched
Definition:
cthread_int.h:72
lib
usr
clib
cthread
cthread_once.h
Generated by
1.9.1