blob: d9f1ed75d56f7a82d82040453441a3f6a6a2cdc6 (
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
|
// $Id$
template <class PROXY, class ACE_LOCK> ACE_INLINE ACE_TYPENAME TAO_NS_Event_Map_Entry_T<PROXY>::COLLECTION*
TAO_NS_Event_Map_T<PROXY, ACE_LOCK>::find (const TAO_NS_EventType& event_type ACE_ENV_ARG_DECL_NOT_USED)
{
TAO_NS_Event_Map_Entry_T<PROXY>* entry;
ACE_READ_GUARD_RETURN (ACE_LOCK, ace_mon, this->lock_, 0);
if (map_.find (event_type, entry) == 0)
return entry->collection ();
else
return 0;
}
template <class PROXY, class ACE_LOCK> ACE_INLINE ACE_TYPENAME TAO_NS_Event_Map_Entry_T<PROXY>::COLLECTION*
TAO_NS_Event_Map_T<PROXY, ACE_LOCK>::broadcast_collection (void)
{
return this->broadcast_entry_.collection ();
}
template <class PROXY, class ACE_LOCK> ACE_INLINE void
TAO_NS_Event_Map_T<PROXY, ACE_LOCK>::attach_observer (TAO_NS_Event_Map_Observer* observer)
{
this->observer_ = observer;
}
template <class PROXY, class ACE_LOCK> ACE_INLINE int
TAO_NS_Event_Map_T<PROXY, ACE_LOCK>::event_type_count (void)
{
return this->event_type_count_;
}
|