Mixe for Privacy and Anonymity in the Internet
Public Member Functions | Private Attributes
tUINT32withLock Class Reference

#include <CAFirstMix.hpp>

Collaboration diagram for tUINT32withLock:
[legend]

List of all members.

Public Member Functions

 tUINT32withLock ()
void inc ()
int getAndzero ()

Private Attributes

volatile UINT32 value
CAMutex lock

Detailed Description

Definition at line 85 of file CAFirstMix.hpp.


Constructor & Destructor Documentation

Definition at line 91 of file CAFirstMix.hpp.

References value.

      {
        value=0;
      }

Member Function Documentation

int tUINT32withLock::getAndzero ( ) [inline]

Definition at line 102 of file CAFirstMix.hpp.

References CAMutex::lock(), lock, CAMutex::unlock(), and value.

Referenced by iplist_loopDoLogCountries().

      {
        UINT32 tmp;
        lock.lock();
        tmp=value;
        value=0;
        lock.unlock();
        return tmp;
      }

Here is the call graph for this function:

void tUINT32withLock::inc ( ) [inline]

Definition at line 95 of file CAFirstMix.hpp.

References CAMutex::lock(), lock, CAMutex::unlock(), and value.

Referenced by CAFirstMixB::loop(), and CAFirstMixA::loop().

      {
        lock.lock();
        value++;
        lock.unlock();
      }

Here is the call graph for this function:


Member Data Documentation

Definition at line 89 of file CAFirstMix.hpp.

Referenced by getAndzero(), and inc().

volatile UINT32 tUINT32withLock::value [private]

Definition at line 88 of file CAFirstMix.hpp.

Referenced by getAndzero(), inc(), and tUINT32withLock().


The documentation for this class was generated from the following file: