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

@@ -156,3 +156,18 @@ dbEventSubscription dbServiceIO::subscribe ( struct dbAddr &addr, dbSubscription
return es;
}
void dbServiceIO::show ( unsigned level ) const
{
this->mutex.lock ();
printf ( "dbServiceIO at %p\n", this );
if (level > 0u ) {
printf ( "\tevent call back cache location %p, and its size %lu\n",
this->pEventCallbackCache, this->eventCallbackCacheSize );
}
if ( level > 1u ) {
this->mutex.show ( level - 2u );
}
this->mutex.unlock ();
}