Public Member Functions | Public Attributes

graphlab::atomic< T > Class Template Reference
[GraphLab Utility Classes and Functions]

atomic object toolkitA templated class for creating atomic numbers. More...

#include <atomic.hpp>

List of all members.

Public Member Functions

 atomic (const T &value=0)
 Creates an atomic number with value "value".
inc ()
 Performs an atomic increment by 1, returning the new value.
dec ()
 Performs an atomic decrement by 1, returning the new value.
inc (T val)
 Performs an atomic increment by 'val', returning the new value.
dec (T val)
 Performs an atomic decrement by 'val', returning the new value.
inc_ret_last ()
 Performs an atomic increment by 1, returning the old value.
dec_ret_last ()
 Performs an atomic decrement by 1, returning the old value.
inc_ret_last (T val)
 Performs an atomic increment by 'val', returning the old value.
dec_ret_last (T val)
 Performs an atomic decrement by 'val', returning the new value.

Public Attributes

volatile T value
 The current value of the atomic number.

Detailed Description

template<typename T>
class graphlab::atomic< T >

atomic object toolkit

A templated class for creating atomic numbers.

Definition at line 30 of file atomic.hpp.


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