reftrack more classes

include the common abstract bases used by all ChannelProviders.
This commit is contained in:
Michael Davidsaver
2017-08-31 11:39:13 -05:00
parent f1e938b039
commit 79874e1811
7 changed files with 96 additions and 8 deletions

View File

@@ -4,6 +4,8 @@
* in file LICENSE that is included with this distribution.
*/
#include <pv/reftrack.h>
#define epicsExportSharedSymbols
#include <pv/serverChannelImpl.h>
@@ -12,6 +14,8 @@ using namespace epics::pvData;
namespace epics {
namespace pvAccess {
size_t ServerChannelImpl::num_instances;
ServerChannelImpl::ServerChannelImpl(Channel::shared_pointer const & channel,
const ChannelRequester::shared_pointer &requester,
pvAccessID cid, pvAccessID sid,
@@ -23,6 +27,7 @@ ServerChannelImpl::ServerChannelImpl(Channel::shared_pointer const & channel,
_destroyed(false),
_channelSecuritySession(css)
{
REFTRACE_INCREMENT(num_instances);
if (!channel.get())
{
THROW_BASE_EXCEPTION("non-null channel required");
@@ -109,6 +114,7 @@ void ServerChannelImpl::destroy()
ServerChannelImpl::~ServerChannelImpl()
{
destroy();
REFTRACE_DECREMENT(num_instances);
}
void ServerChannelImpl::printInfo()