HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_IntrusiveThreadSafeCounterPolicy Struct Reference

Thread-safe policy for UT_IntrusiveRefCounter. More...

#include <UT_IntrusivePtr.h>

Public Types

using type = SYS_AtomicInt32
 
using pod_type = uint32
 

Static Public Member Functions

static SYS_FORCE_INLINE uint32 load (const type &counter) noexcept
 
static SYS_FORCE_INLINE void increment (type &counter) noexcept
 
static SYS_FORCE_INLINE void increment (type &counter, pod_type refs_to_add) noexcept
 
static SYS_FORCE_INLINE uint32 decrement (type &counter) noexcept
 
static SYS_FORCE_INLINE uint32 decrement (type &counter, pod_type refs_to_remove) noexcept
 
static SYS_FORCE_INLINE bool conditionalIncrement (type &counter) noexcept
 

Detailed Description

Thread-safe policy for UT_IntrusiveRefCounter.

Definition at line 128 of file UT_IntrusivePtr.h.

Member Typedef Documentation

Member Function Documentation

static SYS_FORCE_INLINE bool UT_IntrusiveThreadSafeCounterPolicy::conditionalIncrement ( type counter)
inlinestaticnoexcept

Definition at line 162 of file UT_IntrusivePtr.h.

static SYS_FORCE_INLINE uint32 UT_IntrusiveThreadSafeCounterPolicy::decrement ( type counter)
inlinestaticnoexcept

Definition at line 151 of file UT_IntrusivePtr.h.

static SYS_FORCE_INLINE uint32 UT_IntrusiveThreadSafeCounterPolicy::decrement ( type counter,
pod_type  refs_to_remove 
)
inlinestaticnoexcept

Definition at line 156 of file UT_IntrusivePtr.h.

static SYS_FORCE_INLINE void UT_IntrusiveThreadSafeCounterPolicy::increment ( type counter)
inlinestaticnoexcept

Definition at line 140 of file UT_IntrusivePtr.h.

static SYS_FORCE_INLINE void UT_IntrusiveThreadSafeCounterPolicy::increment ( type counter,
pod_type  refs_to_add 
)
inlinestaticnoexcept

Definition at line 145 of file UT_IntrusivePtr.h.

static SYS_FORCE_INLINE uint32 UT_IntrusiveThreadSafeCounterPolicy::load ( const type counter)
inlinestaticnoexcept

Definition at line 134 of file UT_IntrusivePtr.h.


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