1/*
2 * Copyright 2009, Colin G��nther, coling@gmx.de.
3 * Copyright 2007, Hugo Santos. All Rights Reserved.
4 * Distributed under the terms of the MIT License.
5 */
6#ifndef _FBSD_COMPAT_SYS__MUTEX_H_
7#define _FBSD_COMPAT_SYS__MUTEX_H_
8
9
10#include <lock.h>
11#include <KernelExport.h>
12
13
14struct mtx {
15	int						type;
16	union {
17		struct {
18			mutex			lock;
19			thread_id		owner;
20		}					mutex_;
21		recursive_lock		recursive;
22		struct {
23			spinlock		lock;
24			cpu_status		state;
25		}					spinlock_;
26	} u;
27};
28
29
30#endif /* _FBSD_COMPAT_SYS__MUTEX_H_ */
31