blob: b6a8dba546c881bc38bbd23dd5822fb2175c43e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
template <typename AnnotationId>
ACE_INLINE
Basic_P_Strategy<AnnotationId>::Basic_P_Strategy(int maxThreads)
:DA_Strategy_Base(maxThreads),
t_r(maxThreads)
{
}
template <typename AnnotationId>
ACE_INLINE
Basic_P_Strategy<AnnotationId>::~Basic_P_Strategy()
{
}
template <typename AnnotationId>
ACE_INLINE
bool Basic_P_Strategy<AnnotationId>::is_deadlock_potential(AnnotationId handle)
{
int annotation = get_annotation(handle);
return !(annotation < t_r);
}
template <typename AnnotationId>
ACE_INLINE
void Basic_P_Strategy<AnnotationId>::grant(AnnotationId handle)
{
--t_r;
}
template <typename AnnotationId>
ACE_INLINE
void Basic_P_Strategy<AnnotationId>::release(AnnotationId upcall_handle)
{
++t_r;
}
|