10 #ifndef TEUCHOS_SHARED_ACCESS_POLICY_HPP
11 #define TEUCHOS_SHARED_ACCESS_POLICY_HPP
ScopedThreadLock scoped_lock_type
static void atomic_increment(atomic_integral_type *p)
Atomic increment of a shared integral object.
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
Basic portable thread lock primative class.
int atomic_integral_type
Supported type for shared integral objects.
ScopedThreadLock(ThreadLock &lock)
static void atomic_decrement(atomic_integral_type *p)
Atomic decrement of a shared integral object.
static const atomic_integral_type atomic_fetch(const atomic_integral_type *p)
Atomic fetch a shared integral object.
Single policy class defining an approach for sharing an integral object across threads as well as a g...
static void atomic_set(atomic_integral_type *p, const atomic_integral_type v)
Atomic setting a shared integral object.
Stack-based object for locking a thread.