blob: 5bd14d409e4fabcae1f8c549bd34c61f53fb0d2f (
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
38
39
40
41
42
43
44
45
46
47
|
// -*- C++ -*-
//=============================================================================
/**
* @file Basic_P_Strategy.h
*
*
*
*
*
* @author Paul Oberlin <pauloberlin@gmail.com>
*/
//=============================================================================
#ifndef ACE_BASIC_P_STRATEGY_H
#define ACE_BASIC_P_STRATEGY_H
#include /**/ "ace/pre.h"
#include "ace/DA_Strategy_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
template <typename AnnotationId>
class Basic_P_Strategy : public DA_Strategy_Base<AnnotationId> {
//The annotations consist of an identifier and a resource cost value
public:
Basic_P_Strategy(int maxThreads);
virtual ~Basic_P_Strategy();
virtual bool is_deadlock_potential(AnnotationId handle);
virtual void grant(AnnotationId handle);
virtual void release(AnnotationId upcall_handle);
private:
int t_r;
};
#if defined (__ACE_INLINE__)
#include "ace/Basic_P_Strategy.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_BASIC_P_STRATEGY_H */
|