diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-27 23:12:27 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-27 23:12:27 +0000 |
commit | 4075bff35deee2c0e332ab5db6fb73936fb375bb (patch) | |
tree | b6f62eec9aa9db67137eb66ae020d41827a7e216 /TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h | |
parent | 4a82d19278e3f1eefd32ab50ebb04d0e1fc42d91 (diff) | |
download | ATCD-4075bff35deee2c0e332ab5db6fb73936fb375bb.tar.gz |
ChangeLogTag:Sat Feb 26 21:45:45 2000 Carlos O'Ryan <coryan@uci.edu>ESF
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h new file mode 100644 index 00000000000..dc102a2cd69 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h @@ -0,0 +1,61 @@ +/* -*- C++ -*- */ +// $Id$ +// +// ============================================================================ +// +// = LIBRARY +// ORBSVCS Event Service Framework +// +// = FILENAME +// ESF_Busy_Lock +// +// = AUTHOR +// Carlos O'Ryan (coryan@cs.wustl.edu) +// +// ============================================================================ + +#ifndef TAO_ESF_BUSY_LOCK_H +#define TAO_ESF_BUSY_LOCK_H + +#include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +template<class Adaptee> +class TAO_ESF_Busy_Lock_Adapter +{ +public: + TAO_ESF_Busy_Lock_Adapter (Adaptee* adaptee); + // Constructor + + // = The ACE_Lock methods, please check $ACE_ROOT/ace/Synch.h for + // details. + + int remove (void); + int acquire (void); + int tryacquire (void); + int release (void); + int acquire_read (void); + int acquire_write (void); + int tryacquire_read (void); + int tryacquire_write (void); + +private: + Adaptee* adaptee_; +}; + +#if defined (__ACE_INLINE__) +#include "ESF_Busy_Lock.i" +#endif /* __ACE_INLINE__ */ + +#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) +#include "ESF_Busy_Lock.cpp" +#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ + +#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) +#pragma implementation ("ESF_Busy_Lock.cpp") +#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ + +#endif /* TAO_ESF_BUSY_LOCK_H */ |