diff options
author | tworm <tworm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-04 14:23:13 +0000 |
---|---|---|
committer | tworm <tworm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-04 14:23:13 +0000 |
commit | 7faf1cb3b0be77a4b4fd83f27be3ac5d82ba407c (patch) | |
tree | ad4791f61c4a01422086ae528fa4b9e717798f40 /TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h | |
parent | d463f5d0776df0518eca1a61675b0fa2702e5191 (diff) | |
download | ATCD-7faf1cb3b0be77a4b4fd83f27be3ac5d82ba407c.tar.gz |
First version
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h new file mode 100644 index 00000000000..5f2599a078e --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h @@ -0,0 +1,65 @@ +/* -*- 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> +// +// ============================================================================ + +#if !defined (_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 + // + // + // + // +public: + 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. + + 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 + + ~TAO_Concurrency_Server (void); + // Destructor. + +private: + CC_LockSetFactory lock_set_factory_; +}; + +#endif /* _CONCURRENCY_SERVER_H */ + |