00001 // Filename: atomicAdjustDummyImpl.h 00002 // Created by: drose (09Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef ATOMICADJUSTDUMMYIMPL_H 00020 #define ATOMICADJUSTDUMMYIMPL_H 00021 00022 #include "pandabase.h" 00023 #include "selectThreadImpl.h" 00024 00025 #ifdef THREAD_DUMMY_IMPL 00026 #include "notify.h" 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : AtomicAdjustDummyImpl 00030 // Description : A trivial implementation for atomic adjustments for 00031 // systems that don't require multiprogramming, and 00032 // therefore don't require special atomic operations. 00033 //////////////////////////////////////////////////////////////////// 00034 class EXPCL_PANDAEXPRESS AtomicAdjustDummyImpl { 00035 public: 00036 INLINE static int inc(int &var); 00037 INLINE static int dec(int &var); 00038 INLINE static int set(int &var, int new_value); 00039 }; 00040 00041 #include "atomicAdjustDummyImpl.I" 00042 00043 #endif // THREAD_DUMMY_IMPL 00044 00045 #endif