Mixes for Privacy and Anonymity in the Internet
Defines | Functions
CAAccountingInstance.cpp File Reference

Defines

#define JAP_DIGEST_LENGTH   28

Functions

bool testAndSetLoginOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 if the current login entry isn't locked by a login thread the calling login-thread obtains ownership
bool resetLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 indicates that the ongoing login process for this entry is finished but doesn't reset ownership.
bool testLoginEntryOwner (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 tests whether the corresponding ownerEntry owns this loginEntry.
bool isLoginOngoing (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)
 test whether this entry is currently resrved by an ongoing login process.
bool testLoginEntryOwner_internal (struct AccountLoginHashEntry *loginEntry, fmHashTableEntry *ownerRef)

Define Documentation

#define JAP_DIGEST_LENGTH   28

Function Documentation

bool isLoginOngoing ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

test whether this entry is currently resrved by an ongoing login process.

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, and CAMutex::unlock().

Referenced by CAAccountingInstance::cleanupTableEntry().

bool resetLoginOngoing ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

indicates that the ongoing login process for this entry is finished but doesn't reset ownership.

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().

Referenced by CAAccountingInstance::unlockLogin().

bool testAndSetLoginOwner ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

if the current login entry isn't locked by a login thread the calling login-thread obtains ownership

References CAMutex::lock(), AccountLoginHashEntry::loginOngoing, AccountLoginHashEntry::ownerLock, AccountLoginHashEntry::ownerRef, and CAMutex::unlock().

Referenced by CAAccountingInstance::handleChallengeResponse_internal().

bool testLoginEntryOwner ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)

tests whether the corresponding ownerEntry owns this loginEntry.

References CAMutex::lock(), AccountLoginHashEntry::ownerLock, testLoginEntryOwner_internal(), and CAMutex::unlock().

Referenced by CAAccountingInstance::cleanupTableEntry().

bool testLoginEntryOwner_internal ( struct AccountLoginHashEntry loginEntry,
fmHashTableEntry ownerRef 
)