/* Obtains the item that is located at the start of the list. Note that the item is just read, not removed.  */
void* TbxListGetFirstItem(tTbxList const *list)
/* Obtains the item that is located at the start of the list. Note that the item is just read, not removed.  */
void* TbxListGetFirstItem(tTbxList const *list)
{
  void * result = NULL;
  TBX_ASSERT(list != NULL);
  if (list != NULL)
  {
    TbxCriticalSectionEnter();
    if (list->firstNodePtr != NULL)
    {
      result = list->firstNodePtr->itemPtr;
    }
    TbxCriticalSectionExit();
  }
  return result;
}