mcatan      2004/04/02 00:59:11

  Modified:    include/log4cxx/helpers thread.h
  Log:
  added InterlockedIncrement and InterlockedDecrement
  
  Revision  Changes    Path
  1.10      +10 -0     logging-log4cxx/include/log4cxx/helpers/thread.h
  
  Index: thread.h
  ===================================================================
  RCS file: /home/cvs/logging-log4cxx/include/log4cxx/helpers/thread.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- thread.h  7 Mar 2004 06:14:00 -0000       1.9
  +++ thread.h  2 Apr 2004 08:59:11 -0000       1.10
  @@ -119,6 +119,16 @@
                        */
                        void setPriority(int newPriority);
   
  +                     /**
  +                     Atomic increment
  +                     */
  +                     static long InterlockedIncrement(volatile long * val);
  +
  +                     /**
  +                     Atomic decrement
  +                     */
  +                     static long InterlockedDecrement(volatile long * val);
  +             
                protected:
                        /** Thread descriptor */
   #ifdef HAVE_PTHREAD
  
  
  

Reply via email to