25 #ifndef PXR_BASE_TRACE_REPORTER_DATA_SOURCE_COLLECTOR_H
26 #define PXR_BASE_TRACE_REPORTER_DATA_SOURCE_COLLECTOR_H
37 #include <tbb/concurrent_queue.h>
55 using ThisPtr = TraceReporterDataSourceCollectorPtr;
83 std::function<bool()> _accept;
84 tbb::concurrent_queue<CollectionPtr> _pendingCollections;
89 #endif // PXR_BASE_TRACE_REPORTER_DATA_SOURCE_COLLECTOR_H
static ThisRefPtr New(std::function< bool()> accept)
TRACE_API void Clear() override
Removes all references to TraceCollections.
TraceReporterDataSourceCollector This
static ThisRefPtr New()
Creates a new TraceReporterDataSourceCollector.
std::unique_ptr< This > ThisRefPtr
TraceReporterDataSourceCollectorPtr ThisPtr
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_WEAK_PTRS(TraceReporterDataSourceCollector)
TRACE_API std::vector< CollectionPtr > ConsumeData() override
Returns the next TraceCollections which need to be processed.