HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
refcnt.h File Reference
#include <memory>
#include <OpenImageIO/atomic.h>
#include <OpenImageIO/dassert.h>
+ Include dependency graph for refcnt.h:

Go to the source code of this file.

Classes

class  intrusive_ptr< T >
 A simple intrusive pointer, modeled after std::shared_ptr. More...
 
class  RefCnt
 

Macros

#define OIIO_REFCNT_HAS_RELEASE   1 /* intrusive_ptr::release() */
 

Functions

template<class T >
void intrusive_ptr_add_ref (T *x)
 
template<class T >
void intrusive_ptr_release (T *x)
 

Detailed Description

Wrappers and utilities for reference counting.

Definition in file refcnt.h.

Macro Definition Documentation

#define OIIO_REFCNT_HAS_RELEASE   1 /* intrusive_ptr::release() */

Definition at line 234 of file refcnt.h.

Function Documentation

template<class T >
void intrusive_ptr_add_ref ( T *  x)
inline

Implementation of intrusive_ptr_add_ref, which is needed for any class that you use with intrusive_ptr.

Definition at line 208 of file refcnt.h.

template<class T >
void intrusive_ptr_release ( T *  x)
inline

Implementation of intrusive_ptr_release, which is needed for any class that you use with intrusive_ptr.

Definition at line 217 of file refcnt.h.