added diagnostics

This commit is contained in:
Jeff Hill
2000-09-06 00:35:00 +00:00
parent 87a8230100
commit 2fa3e3d139
10 changed files with 127 additions and 18 deletions

View File

@@ -186,3 +186,29 @@ void dbChannelIO::unlockOutstandingIO () const
{
}
void dbChannelIO::show ( unsigned level ) const
{
this->lock ();
printf ("channel at %p attached to local database record %s\n",
this, this->addr.precord->name );
if ( level > 0u ) {
printf ( "\ttype %s, element count %li, field at %p\n",
dbf_type_to_text ( this->addr.dbr_field_type ), this->addr.no_elements,
this->addr.pfield );
}
if ( level > 1u ) {
this->serviceIO.show ( level - 2u );
printf ( "\tget callback cache at %p, with size %lu\n",
this->pGetCallbackCache, this->getCallbackCacheSize );
tsDLIterConstBD < dbSubscriptionIO > pItem = this->eventq.first ();
while ( pItem.valid () ) {
pItem->show ( level - 2u );
pItem++;
}
if ( this->pBlocker ) {
this->pBlocker->show ( level - 2u );
}
}
this->unlock ();
}