DDS::ReturnCode_t DDS::OpenSplice::StrObjMap::deinit() { if (myStrMap) { ut_tableFree(myStrMap); myStrMap = NULL; } return DDS::RETCODE_OK; }
void monitor_orcFree ( monitor_orc o ) { if (o->filterExpression) { os_free (o->filterExpression); regfree (&o->expression); } ut_tableFree(o->refTree); o->refTree = NULL; free (o); }
/** \brief Deinitialize cond module */ void os_condModuleExit (void) { ut_tableFree (semCache); os_mutexDestroy(&semCacheMutex); }
/** \brief Deinitialize mutex module */ void os_mutexModuleExit (void) { ut_tableFree ((ut_table) cache); semDelete (cache_lock); }
void monitor_trcAction ( v_entity entity, c_voidp args ) { c_base base; monitor_trc trace = monitor_trc(args); time_t t; os_address totalSize; time (&t); base = c_getBase(entity); printf ("\r\n################# Start tracing ################## %s\r\n", ctime(&t)); printf ("Limit : %d\r\n", trace->objectCountLimit); if (trace->filterExpression) { printf ("Filter expression : %s\r\n", trace->filterExpression); } printf ("\r\n"); if (trace->delta) { printf ("%6s (%8s) %8s %12s %-15s %-15s %s\r\n", "Delta", "ObjCount", "ObjSize", "TotalSize", "ObjectKind", "CollectionKind", "TypeName"); } else { printf ("%8s %8s %12s %-15s %-15s %s\r\n", "ObjCount", "ObjSize", "TotalSize", "ObjectKind", "CollectionKind", "TypeName"); } printf ("----------------------------------------------------------------------------------------------------------\r\n"); trace->totalCount = 0; trace->totalExtentCount = 0; trace->index = 0; if (trace->oKind == NO_ORDERING) { c_metaWalk (c_metaObject (base), metaobject, trace); } else { trace->orderedList = ut_tableNew (orderLeafs, trace); c_metaWalk (c_metaObject (base), orderedWalk, trace); ut_walk(trace->orderedList, orderedAction, trace); ut_tableFree(trace->orderedList, NULL, NULL, NULL, NULL); trace->orderedList = NULL; } printf ("\r\n"); printf (" %ld for %ld object headers (%d) and MM headers (%d)\r\n", trace->totalExtentCount * (C_SIZEOF(c_header) + MM_HEADER_SIZE), trace->totalExtentCount, C_SIZEOF(c_header), MM_HEADER_SIZE); totalSize = trace->totalCount + trace->totalExtentCount * (C_SIZEOF(c_header) + MM_HEADER_SIZE); printf ("Total : %d (%.2f KB)\r\n", totalSize, (double)totalSize/1024.0); trace->cycleNr++; }