CogniBoost/sw/libCogniBoost/cbLibDev.c
void cbDeviceDelete(cbHnd_T hnd)
{
  size_t i;

  if( hnd == CB_HND_NONE )
  {
    return;
  }

  for(i=0; i<arraysize(hnd->m_tblTransCache); ++i)
  {
    cbCacheForget(hnd, (cbTid_T)i);
  }

  pthread_mutex_destroy(&(hnd->m_mutexTrans));

  delete((void *)(hnd->m_sDeviceName));

  delete(hnd);
}
/*!
 * \brief Delete device data.
 *
 * \warning The client should disconnect prior to deletion.
 *
 * \param hnd       CogniBoost device handle.
 */
\brief Delete device data.
\warning The client should disconnect prior to deletion.

\param hnd       CogniBoost device handle.
\ brief Delete device data . \ warning The client should disconnect prior to deletion . \ param hnd CogniBoost device handle .
void cbDeviceDelete(cbHnd_T hnd)
{
  size_t i;
  if( hnd == CB_HND_NONE )
  {
    return;
  }
  for(i=0; i<arraysize(hnd->m_tblTransCache); ++i)
  {
    cbCacheForget(hnd, (cbTid_T)i);
  }
  pthread_mutex_destroy(&(hnd->m_mutexTrans));
  delete((void *)(hnd->m_sDeviceName));
  delete(hnd);
}
void cbDeviceDelete ( cbHnd_T hnd ) { size_t i ; if ( hnd == CB_HND_NONE ) { return ; } for ( i = 0 ; i < arraysize ( hnd -> m_tblTransCache ) ; ++ i ) { cbCacheForget ( hnd , ( cbTid_T ) i ) ; } pthread_mutex_destroy ( & ( hnd -> m_mutexTrans ) ) ; delete ( ( void * ) ( hnd -> m_sDeviceName ) ) ; delete ( hnd ) ; }
\brief Delete device data.
\ brief Delete device data .