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;
19 
20 #ifdef __cplusplus
21 }
22 #endif
23 
24 #endif /* _CTHREAD_ONCE_H_ */
#define __cne_cache_aligned
Definition: cne_common.h:379
CNDP_API int cthread_once(struct cthread_once *once, int(*func)(void *), void *arg)