2017-04-21 10:43:26 +00:00
|
|
|
/*
|
2018-12-06 14:17:51 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright 2015 Intel Corporation.
|
|
|
|
* Copyright 2012 Hasan Alayli <halayli@gmail.com>
|
2017-04-21 10:43:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LTHREAD_COND_H_
|
|
|
|
#define LTHREAD_COND_H_
|
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
#include "lthread_queue.h"
|
|
|
|
|
|
|
|
#define MAX_COND_NAME_SIZE 64
|
|
|
|
|
|
|
|
struct lthread_cond {
|
|
|
|
struct lthread_queue *blocked;
|
|
|
|
struct lthread_sched *root_sched;
|
|
|
|
int count;
|
|
|
|
char name[MAX_COND_NAME_SIZE];
|
|
|
|
uint64_t diag_ref; /* optional ref to user diag data */
|
|
|
|
} __rte_cache_aligned;
|
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
#endif /* LTHREAD_COND_H_ */
|