| Kyoto Cabinet
   
    | 
Integer with atomic operations. More...
#include <kcthread.h>
| Public Member Functions | |
| AtomicInt64 () | |
| Default constructor. | |
| AtomicInt64 (const AtomicInt64 &src) | |
| Copy constructor. | |
| AtomicInt64 (int64_t num) | |
| Constructor. | |
| ~AtomicInt64 () | |
| Destructor. | |
| int64_t | set (int64_t val) | 
| Set the new value. | |
| int64_t | add (int64_t val) | 
| Add a value. | |
| bool | cas (int64_t oval, int64_t nval) | 
| Perform compare-and-swap. | |
| int64_t | get () const | 
| Get the current value. | |
| AtomicInt64 & | operator= (const AtomicInt64 &right) | 
| Assignment operator from the self type. | |
| AtomicInt64 & | operator= (const int64_t &right) | 
| Assignment operator from integer. | |
| operator int64_t () const | |
| Cast operator to integer. | |
| AtomicInt64 & | operator+= (int64_t right) | 
| Summation assignment operator by integer. | |
| AtomicInt64 & | operator-= (int64_t right) | 
| Subtraction assignment operator by integer. | |
| int64_t | secure_least (int64_t val) | 
| Secure the least value. | |
Integer with atomic operations.
| kyotocabinet::AtomicInt64::AtomicInt64 | ( | ) |  [explicit] | 
Default constructor.
| kyotocabinet::AtomicInt64::AtomicInt64 | ( | const AtomicInt64 & | src | ) | 
Copy constructor.
| src | the source object. | 
| kyotocabinet::AtomicInt64::AtomicInt64 | ( | int64_t | num | ) | 
Constructor.
| num | the initial value. | 
Destructor.
| int64_t kyotocabinet::AtomicInt64::set | ( | int64_t | val | ) | 
Set the new value.
| val | the new value. | 
| int64_t kyotocabinet::AtomicInt64::add | ( | int64_t | val | ) | 
Add a value.
| val | the additional value. | 
| bool kyotocabinet::AtomicInt64::cas | ( | int64_t | oval, | 
| int64_t | nval | ||
| ) | 
Perform compare-and-swap.
| oval | the old value. | 
| nval | the new value. | 
| int64_t kyotocabinet::AtomicInt64::get | ( | ) | const | 
Get the current value.
| AtomicInt64& kyotocabinet::AtomicInt64::operator= | ( | const AtomicInt64 & | right | ) | 
Assignment operator from the self type.
| right | the right operand. | 
| AtomicInt64& kyotocabinet::AtomicInt64::operator= | ( | const int64_t & | right | ) | 
Assignment operator from integer.
| right | the right operand. | 
| kyotocabinet::AtomicInt64::operator int64_t | ( | ) | const | 
Cast operator to integer.
| AtomicInt64& kyotocabinet::AtomicInt64::operator+= | ( | int64_t | right | ) | 
Summation assignment operator by integer.
| right | the right operand. | 
| AtomicInt64& kyotocabinet::AtomicInt64::operator-= | ( | int64_t | right | ) | 
Subtraction assignment operator by integer.
| right | the right operand. | 
| int64_t kyotocabinet::AtomicInt64::secure_least | ( | int64_t | val | ) | 
Secure the least value.
| val | the least value | 
 1.7.6.1
 1.7.6.1