| IBufferResource
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/MultiBufferResource.h |
Include |
#include "Chaos/Framework/MultiBufferResource.h" |
template<typename ResourceType>
class FGuardedTripleBuffer : public Chaos::IBufferResource< ResourceType >
Triple buffer based on a single atomic variable, that guards against the consumer thread using old values.
Not thread-safe, requires external locks.
Name | Description | |
---|---|---|
|
FGuardedTripleBuffer() |
This class implements a circular buffer access pattern, such that during normal serial operation each buffer will be used. |
Name | Description | ||
---|---|---|---|
|
const Resour... |
PeekConsumerBuffer() |
Get access to the currently held consumer buffer, ignoring whether it's already been consumed. |
Name | Description | ||
---|---|---|---|
|
ResourceType... |
AccessProducerBuffer() |
Get the current producer buffer for writing. |
|
FlipProducer() |
Make the current producer buffer available to the consumer thread. |
|
|
EMultiBuffer... |
GetBufferMode() |
|
|
const Resour... |
GetConsumerBuffer() |
Get an updated buffer for the consuming thread to read from. |
|
ResourceType... |
GetConsumerBufferMutable() |
|
|
const Resour... |
GetProducerBuffer() |
Get the current producer buffer. |