GDTR tracing

This commit is contained in:
Pavel Kirienko
2014-03-09 16:49:59 +04:00
parent 326f7082d5
commit c1a8f818f8
2 changed files with 16 additions and 1 deletions
@@ -5,6 +5,7 @@
#include <cassert>
#include <cstdlib>
#include <uavcan/global_data_type_registry.hpp>
#include <uavcan/internal/debug.hpp>
namespace uavcan
{
@@ -111,6 +112,15 @@ GlobalDataTypeRegistry& GlobalDataTypeRegistry::instance()
return inst;
}
void GlobalDataTypeRegistry::freeze()
{
if (!frozen_)
{
frozen_ = true;
UAVCAN_TRACE("GlobalDataTypeRegistry", "Frozen");
}
}
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
{
const List* list = selectList(kind);