| OpendTect 8.0

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Threads::Atomic< T > Class Template Reference
Basic

`#include <atomic.h>`

Inheritance diagram for Threads::Atomic< T >:
[legend]

## Public Member Functions
| Atomic (const Atomic< T > &)
| Atomic (T val=0)
| ~Atomic ()
T | get () const
Atomic< T > & | operator= (const Atomic< T > &)
Atomic< T > & | operator= (T nv)
void | setIfLarger (T newval)
void | setIfSmaller (T newval)
bool | setIfValueIs (T curval, T newval, T *actualvalptr=0)

## Detailed Description

template<class T>
class Threads::Atomic< T >

<>

## Constructor & Destructor Documentation

## ◆ Atomic() [1/2]

template<class T >

Threads::Atomic< T >::Atomic | ( | T | val = 0 | ) |
| inline

## ◆ Atomic() [2/2]

template<class T >

Threads::Atomic< T >::Atomic | ( | const Atomic< T > & | val | ) |
| inline

## ◆ ~Atomic()

template<class T >

Threads::Atomic< T >::~Atomic | ( |  | ) |
| inline

## Member Function Documentation

## ◆ get()

template<class T >

T Threads::Atomic< T >::get | ( |  | ) | const
| inline

## ◆ operator=() [1/2]

template<class T >

Threads::Atomic< T > & Threads::Atomic< T >::operator= | ( | const Atomic< T > & | nv | ) |
| inline

## ◆ operator=() [2/2]

template<class T >

Threads::Atomic< T > & Threads::Atomic< T >::operator= | ( | T | nv | ) |
| inline

## ◆ setIfLarger()

template<class T >

void Threads::Atomic< T >::setIfLarger | ( | T | newval | ) |
| inline

Sets to newval if newval is larger than current value.

## ◆ setIfSmaller()

template<class T >

void Threads::Atomic< T >::setIfSmaller | ( | T | newval | ) |
| inline

Sets to newval if newval is smaller than current value.

## ◆ setIfValueIs()

template<class T >

bool Threads::Atomic< T >::setIfValueIs | ( | T | curval,
|  | T | newval,
|  | T * | actualvalptr = 0 )
| inline

Generated at
for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025