/* Obtains the number of items that are currently stored in the list.  */
size_t TbxListGetSize(tTbxList const *list)
/* Obtains the number of items that are currently stored in the list.  */
size_t TbxListGetSize(tTbxList const *list)
{
  size_t result = 0;
  TBX_ASSERT(list != NULL);
  if (list != NULL)
  {
    TbxCriticalSectionEnter();
    result = list->nodeCount;
    TbxCriticalSectionExit();
  }
  return result;
}