]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix stats builds
authorVMware, Inc <>
Mon, 21 Nov 2011 22:47:15 +0000 (14:47 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 21 Nov 2011 22:47:15 +0000 (14:47 -0800)
The MXUser internal singleton lock routine is used by stats and
debug; it needs to be there for both types of builds.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ul.c

index 4aaff77b83cf5f79f75c17a0db46838d13d7cae7..2d579e4789a7b54442b4362021be31dba246a73a 100644 (file)
@@ -37,17 +37,6 @@ Bool (*MXUserMX_TryLockRec)(struct MX_MutexRec *lock) = NULL;
 Bool (*MXUserMX_IsLockedByCurThreadRec)(const struct MX_MutexRec *lock) = NULL;
 
 
-#if defined(MXUSER_DEBUG)
-#define MXUSER_MAX_LOCKS_PER_THREAD (2 * MXUSER_MAX_REC_DEPTH)
-
-typedef struct {
-   uint32         locksHeld;
-   MXUserHeader  *lockArray[MXUSER_MAX_LOCKS_PER_THREAD];
-} MXUserPerThread;
-
-static Atomic_Ptr hashTableMem;
-
-
 /*
  *-----------------------------------------------------------------------------
  *
@@ -96,6 +85,17 @@ MXUserInternalSingleton(Atomic_Ptr *storage)  // IN:
 }
 
 
+#if defined(MXUSER_DEBUG)
+#define MXUSER_MAX_LOCKS_PER_THREAD (2 * MXUSER_MAX_REC_DEPTH)
+
+typedef struct {
+   uint32         locksHeld;
+   MXUserHeader  *lockArray[MXUSER_MAX_LOCKS_PER_THREAD];
+} MXUserPerThread;
+
+static Atomic_Ptr hashTableMem;
+
+
 /*
  *-----------------------------------------------------------------------------
  *