aboutsummaryrefslogtreecommitdiffstats
path: root/examples/performance-thread/common/lthread_cond.h
blob: 616a55c4dad24c7de241bd386b78a55d81516e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * SPDX-License-Identifier: BSD-3-Clause
 * Copyright 2015 Intel Corporation.
 * Copyright 2012 Hasan Alayli <halayli@gmail.com>
 */

#ifndef LTHREAD_COND_H_
#define LTHREAD_COND_H_

#ifdef __cplusplus
extern "C" {
#endif

#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;

#ifdef __cplusplus
}
#endif

#endif				/* LTHREAD_COND_H_ */