pva2pva 1.4.2
Loading...
Searching...
No Matches
ChannelCacheEntry Struct Reference
Collaboration diagram for ChannelCacheEntry:

Classes

struct  CRequester

Public Types

typedef weak_set< GWChannel > interested_t
typedef MonitorCacheEntry::pvrequest_t pvrequest_t
typedef weak_value_map< pvrequest_t, MonitorCacheEntry > mon_entries_t

Public Member Functions

 POINTER_DEFINITIONS (ChannelCacheEntry)
epicsMutex & mutex () const
 ChannelCacheEntry (ChannelCache *, const std::string &n)

Public Attributes

const std::string channelName
ChannelCache *const cache
epics::pvAccess::Channel::shared_pointer channel
epics::pvAccess::ChannelRequester::shared_pointer requester
bool dropPoke
interested_t interested
mon_entries_t mon_entries

Static Public Attributes

static size_t num_instances

Detailed Description

Definition at line 106 of file chancache.h.

Member Typedef Documentation

◆ interested_t

typedef weak_set<GWChannel> ChannelCacheEntry::interested_t

Definition at line 123 of file chancache.h.

◆ mon_entries_t

typedef weak_value_map<pvrequest_t, MonitorCacheEntry> ChannelCacheEntry::mon_entries_t

Definition at line 127 of file chancache.h.

◆ pvrequest_t

typedef MonitorCacheEntry::pvrequest_t ChannelCacheEntry::pvrequest_t

Definition at line 126 of file chancache.h.

Constructor & Destructor Documentation

◆ ChannelCacheEntry()

ChannelCacheEntry::ChannelCacheEntry ( ChannelCache * c,
const std::string & n )

Definition at line 24 of file chancache.cpp.

25 :channelName(n), cache(c), dropPoke(true)
26{
27 epicsAtomicIncrSizeT(&num_instances);
28}

◆ ~ChannelCacheEntry()

ChannelCacheEntry::~ChannelCacheEntry ( )
virtual

Definition at line 30 of file chancache.cpp.

31{
32 // Should *not* be holding cache->cacheLock
33 if(channel.get())
34 channel->destroy(); // calls channelStateChange() w/ DESTROY
35 epicsAtomicDecrSizeT(&num_instances);
36}

Member Function Documentation

◆ mutex()

epicsMutex & ChannelCacheEntry::mutex ( ) const
inline

Definition at line 115 of file chancache.h.

115{ return interested.mutex(); }

Member Data Documentation

◆ cache

ChannelCache* const ChannelCacheEntry::cache

Definition at line 112 of file chancache.h.

◆ channel

epics::pvAccess::Channel::shared_pointer ChannelCacheEntry::channel

Definition at line 118 of file chancache.h.

◆ channelName

const std::string ChannelCacheEntry::channelName

Definition at line 111 of file chancache.h.

◆ dropPoke

bool ChannelCacheEntry::dropPoke

Definition at line 121 of file chancache.h.

◆ interested

interested_t ChannelCacheEntry::interested

Definition at line 124 of file chancache.h.

◆ mon_entries

mon_entries_t ChannelCacheEntry::mon_entries

Definition at line 128 of file chancache.h.

◆ num_instances

size_t ChannelCacheEntry::num_instances
static

Definition at line 109 of file chancache.h.

◆ requester

epics::pvAccess::ChannelRequester::shared_pointer ChannelCacheEntry::requester

Definition at line 119 of file chancache.h.


The documentation for this struct was generated from the following files: