Public Member Functions
ibis::util::sharedInt64 Class Reference

A 64-bit shared integer class. More...

#include <util.h>

List of all members.

Public Member Functions

uint64_t operator() () const
 Read the current value.
uint64_t operator++ ()
 Increment operator.
void operator+= (const uint64_t rhs)
 In-place addition operator.
uint64_t operator-- ()
 Decrement operator.
void operator-= (const uint64_t rhs)
 In-place subtraction operator.
void swap (sharedInt64 &rhs)
 Swap the contents of two integer variables.

Detailed Description

A 64-bit shared integer class.

It allows multiple threads to safely operate on the integer through the use of the atomic operations provided by GCC extension. If the atomic extension is not available, it falls back on the mutual exclusion lock provided by pthread library.

See also:
ibis::util::sharedInt32

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

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive