Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFastMutexLock.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFastMutexLock.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 23:25:41 $
00007   Version:   $Revision: 1.20 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkFastMutexLock_h
00021 #define __itkFastMutexLock_h
00022 
00023 #include "itkObject.h"
00024 #include "itkSimpleFastMutexLock.h"
00025 #include "itkObjectFactory.h"
00026 
00027 namespace itk
00028 {
00029 
00051 class ITKCommon_EXPORT FastMutexLock : public Object
00052 {
00053 public:
00055   typedef FastMutexLock                 Self;
00056   typedef Object                        Superclass;
00057   typedef SmartPointer<Self>            Pointer;
00058   typedef SmartPointer<const Self>      ConstPointer;
00059 
00061   itkNewMacro(Self);
00062 
00064   itkTypeMacro(FastMutexLock,Object);
00065 
00067   void Lock();
00068 
00070   void Unlock();
00071 
00072 protected:
00073   FastMutexLock() {}
00074   ~FastMutexLock() {}
00075   
00076   SimpleFastMutexLock   m_SimpleFastMutexLock;
00077   void PrintSelf(std::ostream& os, Indent indent) const;
00078   
00079 private:
00080   FastMutexLock(const Self&); //purposely not implemented
00081   void operator=(const Self&); //purposely not implemented
00082 };
00083 
00084 
00085 inline void FastMutexLock::Lock( void )
00086 {
00087   m_SimpleFastMutexLock.Lock();
00088 }
00089 
00090 inline void FastMutexLock::Unlock( void )
00091 {
00092   m_SimpleFastMutexLock.Unlock();
00093 }
00094 
00095 
00096 }//end itk namespace
00097 #endif
00098 

Generated at Mon Jul 12 2010 18:18:00 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000