1 /* 2 * SPDX-License-Identifier: BSD-3-Clause 3 * Copyright 2015 Intel Corporation. 4 * Copyright 2012 Hasan Alayli <[email protected]> 5 */ 6 7 #ifndef LTHREAD_COND_H_ 8 #define LTHREAD_COND_H_ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #include "lthread_queue.h" 15 16 #define MAX_COND_NAME_SIZE 64 17 18 struct lthread_cond { 19 struct lthread_queue *blocked; 20 struct lthread_sched *root_sched; 21 int count; 22 char name[MAX_COND_NAME_SIZE]; 23 uint64_t diag_ref; /* optional ref to user diag data */ 24 } __rte_cache_aligned; 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* LTHREAD_COND_H_ */ 31