Panda3D

lightReMutex.h

00001 // Filename: lightReMutex.h
00002 // Created by:  drose (08Oct08)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef LIGHTREMUTEX_H
00016 #define LIGHTREMUTEX_H
00017 
00018 #include "pandabase.h"
00019 #include "mutexDebug.h"
00020 #include "lightReMutexDirect.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : LightReMutex
00024 // Description : A lightweight reentrant mutex.  See LightMutex and
00025 //               ReMutex.
00026 //
00027 //               This class inherits its implementation either from
00028 //               MutexDebug or LightReMutexDirect, depending on the
00029 //               definition of DEBUG_THREADS.
00030 ////////////////////////////////////////////////////////////////////
00031 #ifdef DEBUG_THREADS
00032 class EXPCL_PANDA_PIPELINE LightReMutex : public MutexDebug
00033 #else
00034 class EXPCL_PANDA_PIPELINE LightReMutex : public LightReMutexDirect
00035 #endif  // DEBUG_THREADS
00036 {
00037 PUBLISHED:
00038   INLINE LightReMutex();
00039 public:
00040   INLINE LightReMutex(const char *name);
00041 PUBLISHED:
00042   INLINE LightReMutex(const string &name);
00043   INLINE ~LightReMutex();
00044 private:
00045   INLINE LightReMutex(const LightReMutex &copy);
00046   INLINE void operator = (const LightReMutex &copy);
00047 };
00048 
00049 #include "lightReMutex.I"
00050 
00051 #endif
 All Classes Functions Variables Enumerations