summaryrefslogtreecommitdiff
path: root/ace/Hash_Map_Manager.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-16 20:04:33 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-16 20:04:33 +0000
commit6923b65deddb15eaba12c1cdd1cbecccd08b2ee5 (patch)
tree52ee246650c52a625dd5743466eb1f1c9479a563 /ace/Hash_Map_Manager.h
parent4e8095a4bc3c113a694e33ea831616b6fc895779 (diff)
downloadATCD-6923b65deddb15eaba12c1cdd1cbecccd08b2ee5.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Hash_Map_Manager.h')
-rw-r--r--ace/Hash_Map_Manager.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/ace/Hash_Map_Manager.h b/ace/Hash_Map_Manager.h
index 1abc494c42d..c7559e9f3ef 100644
--- a/ace/Hash_Map_Manager.h
+++ b/ace/Hash_Map_Manager.h
@@ -18,6 +18,7 @@
#define ACE_HASH_MAP_MANAGER_H
#include "ace/OS.h"
+#include "ace/Synch.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -394,6 +395,9 @@ protected:
ACE_Hash_Map_Entry<EXT_ID, INT_ID> *next_;
// Keeps track of how far we've advanced in a linked list in each
// table slot.
+
+ ACE_Read_Guard<ACE_LOCK> guard_;
+ // Read guard for the life time of the iterator.
};
template <class EXT_ID, class INT_ID, class ACE_LOCK>
@@ -427,10 +431,10 @@ public:
// Postfix advance.
ACE_Hash_Map_Iterator<EXT_ID, INT_ID, ACE_LOCK> &operator-- (void);
- // Prefix advance.
+ // Prefix reverse.
ACE_Hash_Map_Iterator<EXT_ID, INT_ID, ACE_LOCK> operator-- (int);
- // Postfix advance.
+ // Postfix reverse.
ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.
@@ -461,16 +465,16 @@ public:
// = STL styled iteration, compare, and reference functions.
ACE_Hash_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK> &operator++ (void);
- // Postfix advance.
+ // Prefix reverse.
ACE_Hash_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK> operator++ (int);
- // Prefix advance.
+ // Postfix reverse.
ACE_Hash_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK> &operator-- (void);
- // Postfix advance.
+ // Prefix advance.
ACE_Hash_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK> operator-- (int);
- // Prefix advance.
+ // Postfix advance.
ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.