CogniBoost/sw/libCogniBoost/cbLibDev.c
static void cbCacheMark(cbHnd_T hnd, cbTid_T uTid)
{
  cbTransInfo_T *pInfo;

  cbLock(hnd);

  pInfo = hnd->m_tblTransCache[uTid & CB_HDR_TID_MASK];

  if( pInfo != NULL )
  {
    delete(pInfo->m_pPktHdr);
    delete(pInfo->m_pBuf);
    delete(pInfo);
  }

  pInfo = NEW(cbTransInfo_T);

  pInfo->m_pPktHdr  = NULL;
  pInfo->m_pBuf     = NULL;
  pInfo->m_bCached  = false;

  hnd->m_tblTransCache[uTid & CB_HDR_TID_MASK] = pInfo;

  cbUnlock(hnd);
}
/*!
 * \brief Mark the start of a transaction in the transaction cache.
 *
 * A client can be multi-threaded, and so the responses from a CogniBoost server
 * may come out of order with respect to the client thread.
 *
 * \param hnd       CogniBoost device handle.
 * \param uTid      Transaction id.
 */
\brief Mark the start of a transaction in the transaction cache.
A client can be multi-threaded, and so the responses from a CogniBoost server
may come out of order with respect to the client thread.

\param hnd       CogniBoost device handle.
\param uTid      Transaction id.
\ brief Mark the start of a transaction in the transaction cache . A client can be multi - threaded and so the responses from a CogniBoost server may come out of order with respect to the client thread . \ param hnd CogniBoost device handle . \ param uTid Transaction id .
static void cbCacheMark(cbHnd_T hnd, cbTid_T uTid)
{
  cbTransInfo_T *pInfo;
  cbLock(hnd);
  pInfo = hnd->m_tblTransCache[uTid & CB_HDR_TID_MASK];
  if( pInfo != NULL )
  {
    delete(pInfo->m_pPktHdr);
    delete(pInfo->m_pBuf);
    delete(pInfo);
  }
  pInfo = NEW(cbTransInfo_T);
  pInfo->m_pPktHdr  = NULL;
  pInfo->m_pBuf     = NULL;
  pInfo->m_bCached  = false;
  hnd->m_tblTransCache[uTid & CB_HDR_TID_MASK] = pInfo;
  cbUnlock(hnd);
}
static void cbCacheMark ( cbHnd_T hnd , cbTid_T uTid ) { cbTransInfo_T * pInfo ; cbLock ( hnd ) ; pInfo = hnd -> m_tblTransCache [ uTid & CB_HDR_TID_MASK ] ; if ( pInfo != NULL ) { delete ( pInfo -> m_pPktHdr ) ; delete ( pInfo -> m_pBuf ) ; delete ( pInfo ) ; } pInfo = NEW ( cbTransInfo_T ) ; pInfo -> m_pPktHdr = NULL ; pInfo -> m_pBuf = NULL ; pInfo -> m_bCached = false ; hnd -> m_tblTransCache [ uTid & CB_HDR_TID_MASK ] = pInfo ; cbUnlock ( hnd ) ; }
\brief Mark the start of a transaction in the transaction cache.
\ brief Mark the start of a transaction in the transaction cache .