/* Enters a critical section. The functions UtilCriticalSectionEnter and UtilCriticalSectionExit should always be used in a pair.  */
void UtilCriticalSectionEnter(void)
/* Enters a critical section. The functions UtilCriticalSectionEnter and UtilCriticalSectionExit should always be used in a pair.  */
void UtilCriticalSectionEnter(void)
{
  assert(criticalSectionInitialized);
  if (criticalSectionInitialized)
  {
    (void)pthread_mutex_lock((pthread_mutex_t *)&mtxCritSect);
  }
}