1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015 Intel Corporation
6 #ifndef LTHREAD_MUTEX_H_
7 #define LTHREAD_MUTEX_H_
13 #include "lthread_queue.h"
16 #define MAX_MUTEX_NAME_SIZE 64
18 struct lthread_mutex {
19 struct lthread *owner;
21 struct lthread_queue *blocked __rte_cache_aligned;
22 struct lthread_sched *root_sched;
23 char name[MAX_MUTEX_NAME_SIZE];
24 uint64_t diag_ref; /* optional ref to user diag data */
25 } __rte_cache_aligned;
31 #endif /* LTHREAD_MUTEX_H_ */