summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-06-09 02:52:40 +0000
committerbde <bde@FreeBSD.org>2002-06-09 02:52:40 +0000
commit43c80bddb558dce825d3a560aec5a9ce0668ee99 (patch)
tree5e3d6dae856ffed6b39bac3d8d913bd828c3e89c /sys
parent1d011d9d67a224bcbe983a20849d757222b62942 (diff)
downloadFreeBSD-src-43c80bddb558dce825d3a560aec5a9ce0668ee99.zip
FreeBSD-src-43c80bddb558dce825d3a560aec5a9ce0668ee99.tar.gz
Renamed the idempotency identifier to match the file name. Cleaned up
indentation and comments.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/_mutex.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/sys/sys/_mutex.h b/sys/sys/_mutex.h
index 928af17..39b8b39 100644
--- a/sys/sys/_mutex.h
+++ b/sys/sys/_mutex.h
@@ -28,24 +28,23 @@
* $FreeBSD$
*/
-#ifndef _SYS_MUTEX_TYPES_H_
-#define _SYS_MUTEX_TYPES_H_
+#ifndef _SYS__MUTEX_H_
+#define _SYS__MUTEX_H_
/*
- * Sleep/spin mutex
+ * Sleep/spin mutex.
*/
-
struct mtx {
- struct lock_object mtx_object; /* Common lock properties. */
- volatile uintptr_t mtx_lock; /* owner (and state for sleep locks) */
- volatile u_int mtx_recurse; /* number of recursive holds */
- TAILQ_HEAD(, thread) mtx_blocked; /* threads blocked on this lock */
- LIST_ENTRY(mtx) mtx_contested; /* list of all contested locks */
-/* #ifdef MUTEX_PROFILING */
- u_int64_t acqtime;
- const char *file;
- int line;
-/* #endif */
+ struct lock_object mtx_object; /* Common lock properties. */
+ volatile uintptr_t mtx_lock; /* Owner and flags. */
+ volatile u_int mtx_recurse; /* Number of recursive holds. */
+ TAILQ_HEAD(, thread) mtx_blocked; /* Threads blocked on us. */
+ LIST_ENTRY(mtx) mtx_contested; /* Next contested mtx. */
+
+ /* Fields used only if MUTEX_PROFILING is configured: */
+ u_int64_t acqtime;
+ const char *file;
+ int line;
};
-#endif /* !_SYS_MUTEX_TYPES_H_ */
+#endif /* !_SYS__MUTEX_H_ */
OpenPOWER on IntegriCloud