CogniBoost/sw/libCogniBoost/cbLibDev.c
static cbTid_T cbNextTid(cbHnd_T hnd)
{
  cbTid_T uTid;

  cbLock(hnd);

  uTid = hnd->m_uTidCounter;
  hnd->m_uTidCounter = (uTid + 1) & CB_HDR_TID_MASK;

  cbUnlock(hnd);

  return uTid;
}
/*!
 * \brief Atomically get the next available transaction id.
 *
 * \param hnd       CogniBoost device handle.
 *
 * return Returns tid.
 */
\brief Atomically get the next available transaction id.
\param hnd       CogniBoost device handle.

return Returns tid.
\ brief Atomically get the next available transaction id . \ param hnd CogniBoost device handle . return Returns tid .
static cbTid_T cbNextTid(cbHnd_T hnd)
{
  cbTid_T uTid;
  cbLock(hnd);
  uTid = hnd->m_uTidCounter;
  hnd->m_uTidCounter = (uTid + 1) & CB_HDR_TID_MASK;
  cbUnlock(hnd);
  return uTid;
}
static cbTid_T cbNextTid ( cbHnd_T hnd ) { cbTid_T uTid ; cbLock ( hnd ) ; uTid = hnd -> m_uTidCounter ; hnd -> m_uTidCounter = ( uTid + 1 ) & CB_HDR_TID_MASK ; cbUnlock ( hnd ) ; return uTid ; }
\brief Atomically get the next available transaction id.
\ brief Atomically get the next available transaction id .