#include "pxr/pxr.h"
#include "pxr/base/tf/api.h"
#include "pxr/base/tf/diagnostic.h"
#include "pxr/base/arch/demangle.h"
#include <tbb/enumerable_thread_specific.h>
#include <atomic>
#include <type_traits>
#include <vector>
Go to the source code of this file.
#define TF_DEFINE_STACKED |
( |
|
Derived, |
|
|
|
IsPerThread, |
|
|
|
eiAPI |
|
) |
| |
Value:class Derived; \
template <> \
static eiAPI std::atomic<Type*>
value; \
Tf_ExportedStackedStorage<Derived, IsPerThread>>
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
GLsizei const GLfloat * value
std::conditional< PerThread, _PerThreadStackStorage, _GlobalStackStorage >::type Type
std::vector< T const * > Stack
Define the class Derived
that subclasses from TfStacked. IsPerThread
selected thread safety and eiAPI
is used to export the storage for the stack. Use TF_INSTANTIATE_DEFINED_STACKED
to define the storage.
Definition at line 240 of file stacked.h.