Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryILock.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _BERRY_ILOCK_H_
18 #define _BERRY_ILOCK_H_
19 
20 #include <berryObject.h>
21 #include <berryMacros.h>
22 
23 #include "berryJobExceptions.h"
24 
25 namespace berry
26 {
27 
66 struct BERRY_JOBS ILock: public Object
67 {
68 
70 
71 
91  virtual bool Acquire(long delay) throw (InterruptedException) = 0;
92 
105  virtual void Acquire();
106 
114  virtual int GetDepth() = 0;
115 
120  virtual void Release() = 0;
121 };
122 
123 }
124 
125 #endif // BERRY_ILOCK_H
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37