blob: e067efcc60eb3f64998fbad9246274bccf573381 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/Concurrency_Service
//
// = FILENAME
// Concurrency_Utils.h
//
// = DESCRIPTION
// This class implements a Concurrency Server wrapper class which
// holds a number of lock sets. The server must run in the
// thread per request concurrency model in order to let the
// clients block on the semaphores.
//
// = AUTHORS
// Torben Worm <tworm@cs.wustl.edu>
//
// ============================================================================
#ifndef _CONCURRENCY_SERVER_H
#define _CONCURRENCY_SERVER_H
#include "tao/corba.h"
#include "orbsvcs/CosConcurrencyControlC.h"
#include "CC_LockSetFactory.h"
class TAO_ORBSVCS_Export TAO_Concurrency_Server
{
// = TITLE
// Defines a wrapper class for the implementation of the
// concurrency server.
//
// = DESCRIPTION
// This class takes an orb and Poa reference and activates the
// concurrency service lock set factory object under them.
public:
// = Initialization and termination methods.
TAO_Concurrency_Server (void);
//Default constructor.
TAO_Concurrency_Server (CORBA::ORB_var &orb,
PortableServer::POA_var &poa);
// Takes the POA under which to register the Concurrency Service
// implementation object.
~TAO_Concurrency_Server (void);
// Destructor.
int init (CORBA::ORB_var &orb,
PortableServer::POA_var &poa);
// Initialize the concurrency server under the given ORB and POA.
CC_LockSetFactory *GetLockSetFactory(void);
// Get the lock set factory.
private:
CC_LockSetFactory lock_set_factory_;
// This is the lock set factory activated under the POA.
};
#endif /* _CONCURRENCY_SERVER_H */
|