diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-30 00:19:39 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-30 00:19:39 +0000 |
commit | 31d33e922ab241e7a8e20978d8a7dc45d5dbb50f (patch) | |
tree | e4adeac635d64faf2b22f588c3d176a7d7037d6b /ace/Future_Set.h | |
parent | a3433c3c25002c87189ab0915a06972a90d03363 (diff) | |
download | ATCD-31d33e922ab241e7a8e20978d8a7dc45d5dbb50f.tar.gz |
Tue Jun 29 18:48:22 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Future_Set.h')
-rw-r--r-- | ace/Future_Set.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/ace/Future_Set.h b/ace/Future_Set.h index 5d44300470a..183b6132725 100644 --- a/ace/Future_Set.h +++ b/ace/Future_Set.h @@ -17,11 +17,10 @@ #ifndef ACE_FUTURE_SET_H #define ACE_FUTURE_SET_H -#include "ace/Map_Manager.h" -#include "ace/Strategies_T.h" #include "ace/Thread.h" #include "ace/Message_Queue.h" #include "ace/Future.h" +#include "ace/Hash_Map_Manager.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) #pragma once @@ -53,7 +52,7 @@ public: // 0 otherwise int insert (ACE_Future<T> &future); - // Enqueues the given ACE_Future into this objects queue when it is + // Enqueus the given ACE_Future into this objects queue when it is // readable. // // Returns 0 if the future is successfully inserted, 1 if the @@ -82,25 +81,23 @@ private: // Copy constructor binds <this> and <r> to the same // <ACE_Future_Set>. An <ACE_Future_Set> is created if necessary. - typedef ACE_Future<T> - FUTURE; + typedef ACE_Future<T> FUTURE; - typedef ACE_Future_Rep<T> - FUTURE_REP; + typedef ACE_Future_Rep<T> FUTURE_REP; - typedef ACE_Future_Holder<T> - FUTURE_HOLDER; + typedef ACE_Future_Holder<T> FUTURE_HOLDER; - typedef ACE_Map_Manager<FUTURE_REP*, FUTURE_HOLDER *, ACE_Null_Mutex> - FUTURE_MAP; + typedef ACE_Pointer_Hash<FUTURE_REP *> FUTURE_REP_HASH; - typedef ACE_Map_Iterator<FUTURE_REP*, FUTURE_HOLDER *, ACE_Null_Mutex> - FUTURE_ITERATOR; + typedef ACE_Equal_To<FUTURE_REP *> FUTURE_REP_COMPARE; - typedef ACE_Map_Entry<FUTURE_REP*, FUTURE_HOLDER *> - FUTURE_ENTRY; + typedef ACE_Hash_Map_Manager_Ex<FUTURE_REP *, + FUTURE_HOLDER *, + FUTURE_REP_HASH, + FUTURE_REP_COMPARE, + ACE_Null_Mutex> FUTURE_HASH_MAP; - FUTURE_MAP future_map_; + FUTURE_HASH_MAP future_map_; // Map of ACE_Futures, subjects, which have not been written to by // client's writer thread. |