Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
berryLockListener.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef _BERRY_LOCKLISTENER_H_
14
#define _BERRY_LOCKLISTENER_H_
15
16
#include <org_blueberry_core_jobs_Export.h>
17
#include <Poco/Thread.h>
18
#include <
berryObject.h
>
19
20
namespace
berry
21
{
22
33
class
LockListener
:
public
Object
34
{
35
36
berryObjectMacro(
LockListener
);
37
38
// LockManager::ConstPointer manager = ((JobManager)Job.getJobManager()).getLockManager();
39
40
41
public
:
42
55
inline
virtual
bool
AboutToWait
(Poco::Thread* lockOwner)
56
{
57
return
false
;
58
}
59
65
inline
virtual
void
AboutToRelease
()
66
{
67
//do nothing
68
}
69
70
protected
:
71
77
inline
bool
IsLockOwnerThread
()
const
78
{
79
return
manager.isLockOwner();
80
}
81
82
};
83
84
}
85
#endif // _BERRY_LOCKLISTENER_H_
berry::LockListener
Definition:
berryLockListener.h:33
berry::LockListener::AboutToWait
virtual bool AboutToWait(Poco::Thread *lockOwner)
Definition:
berryLockListener.h:55
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
berry::LockListener::AboutToRelease
virtual void AboutToRelease()
Definition:
berryLockListener.h:65
berry::LockListener::IsLockOwnerThread
bool IsLockOwnerThread() const
Definition:
berryLockListener.h:77
berryObject.h
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.core.jobs
src
berryLockListener.h
Generated on Thu Nov 30 2023 15:58:48 for Medical Imaging Interaction Toolkit by
1.8.17