From 62d6f81caec648680350104e0f7d48201150e178 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 12 Apr 2006 20:23:38 +0000 Subject: [PATCH] comment; volatile keyword --- dtool/src/dtoolbase/mutexSpinlockImpl.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dtool/src/dtoolbase/mutexSpinlockImpl.h b/dtool/src/dtoolbase/mutexSpinlockImpl.h index c8a70568d9..34a641ab5f 100644 --- a/dtool/src/dtoolbase/mutexSpinlockImpl.h +++ b/dtool/src/dtoolbase/mutexSpinlockImpl.h @@ -28,7 +28,12 @@ //////////////////////////////////////////////////////////////////// // Class : MutexSpinlockImpl -// Description : Uses Windows native calls to implement a mutex. +// Description : Uses a simple user-space spinlock to implement a +// mutex. It is usually not a good idea to use this +// implementation, unless you are building Panda for a +// specific application on a specific SMP machine, and +// you are confident that you have at least as many +// CPU's as you have threads. //////////////////////////////////////////////////////////////////// class EXPCL_DTOOL MutexSpinlockImpl { public: @@ -42,7 +47,7 @@ public: private: void do_lock(); - volatile PN_int32 _lock; + TVOLATILE PN_int32 _lock; }; #include "mutexSpinlockImpl.I"