VTK
vtkCriticalSection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCriticalSection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkCriticalSection_h
36 #define vtkCriticalSection_h
37 
38 #include "vtkCommonCoreModule.h" // For export macro
39 #include "vtkObject.h"
40 #include "vtkSimpleCriticalSection.h" // For simple critical section
41 
43 {
44 public:
45  static vtkCriticalSection *New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  void Lock();
52 
54  void Unlock();
55 
56 protected:
60 
61 private:
62  vtkCriticalSection(const vtkCriticalSection&); // Not implemented.
63  void operator=(const vtkCriticalSection&); // Not implemented.
64 };
65 
66 
68 {
70 }
71 
73 {
75 }
76 
77 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
vtkSimpleCriticalSection SimpleCriticalSection
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Critical section locking class.
Critical section locking class.
static vtkObject * New()