This is Unofficial EPICS BASE Doxygen Site
ChannelCacheEntry Struct Reference

#include "chancache.h"

+ Collaboration diagram for ChannelCacheEntry:

Classes

struct  CRequester
 

Public Types

typedef weak_set< GWChannelinterested_t
 
typedef MonitorCacheEntry::pvrequest_t pvrequest_t
 
typedef weak_value_map< pvrequest_t, MonitorCacheEntrymon_entries_t
 

Public Member Functions

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

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 105 of file chancache.h.

Member Typedef Documentation

Definition at line 122 of file chancache.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file chancache.cpp.

25  :channelName(n), cache(c), dropPoke(true)
26 {
28 }
const std::string channelName
Definition: chancache.h:110
static size_t num_instances
Definition: chancache.h:108
ChannelCache *const cache
Definition: chancache.h:111
EPICS_ATOMIC_INLINE size_t epicsAtomicIncrSizeT(size_t *pTarget)
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
36 }
epics::pvAccess::Channel::shared_pointer channel
Definition: chancache.h:117
EPICS_ATOMIC_INLINE size_t epicsAtomicDecrSizeT(size_t *pTarget)
static size_t num_instances
Definition: chancache.h:108

Member Function Documentation

epicsMutex& ChannelCacheEntry::mutex ( ) const
inline

Definition at line 114 of file chancache.h.

114 { return interested.mutex(); }
interested_t interested
Definition: chancache.h:123
epicsMutex & mutex() const
Definition: weakset.h:199
ChannelCacheEntry::POINTER_DEFINITIONS ( ChannelCacheEntry  )

Member Data Documentation

ChannelCache* const ChannelCacheEntry::cache

Definition at line 111 of file chancache.h.

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

Definition at line 117 of file chancache.h.

const std::string ChannelCacheEntry::channelName

Definition at line 110 of file chancache.h.

bool ChannelCacheEntry::dropPoke

Definition at line 120 of file chancache.h.

interested_t ChannelCacheEntry::interested

Definition at line 123 of file chancache.h.

mon_entries_t ChannelCacheEntry::mon_entries

Definition at line 127 of file chancache.h.

size_t ChannelCacheEntry::num_instances
static

Definition at line 108 of file chancache.h.

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

Definition at line 118 of file chancache.h.


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