Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
CAAccountingSettleThread Class Reference

A thread that settles CCs with the BI. More...

Public Member Functions

 CAAccountingSettleThread (Hashtable *a_accountingHashtable, UINT8 *currentCascade)
 
 ~CAAccountingSettleThread ()
 
void settle ()
 

Static Private Member Functions

static THREAD_RETURN mainLoop (void *param)
 The main loop. More...
 

Private Attributes

CAConditionVariablem_pCondition
 
CAConditionVariablem_pForcedSettlementCondition
 
UINT8m_settleCascade
 
CAThreadm_pThread
 
volatile bool m_bRun
 
Hashtable * m_accountingHashtable
 
bool m_bSleep
 

Detailed Description

A thread that settles CCs with the BI.

Author
Bastian Voigt
Todo:
make SLEEP_SECONDS a configure option

Constructor & Destructor Documentation

◆ CAAccountingSettleThread()

CAAccountingSettleThread::CAAccountingSettleThread ( Hashtable *  a_accountingHashtable,
UINT8 currentCascade 
)

◆ ~CAAccountingSettleThread()

CAAccountingSettleThread::~CAAccountingSettleThread ( )

Member Function Documentation

◆ mainLoop()

THREAD_RETURN CAAccountingSettleThread::mainLoop ( void *  pParam)
staticprivate

◆ settle()

void CAAccountingSettleThread::settle ( )

Member Data Documentation

◆ m_accountingHashtable

Hashtable* CAAccountingSettleThread::m_accountingHashtable
private

◆ m_bRun

volatile bool CAAccountingSettleThread::m_bRun
private

◆ m_bSleep

bool CAAccountingSettleThread::m_bSleep
private

◆ m_pCondition

CAConditionVariable* CAAccountingSettleThread::m_pCondition
private

◆ m_pForcedSettlementCondition

CAConditionVariable* CAAccountingSettleThread::m_pForcedSettlementCondition
private

◆ m_pThread

CAThread* CAAccountingSettleThread::m_pThread
private

◆ m_settleCascade

UINT8* CAAccountingSettleThread::m_settleCascade
private