/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/BufferedData.h
Lockable resource for use with chaos data. External threads should call GetRead and ReleaseRead on this object to lock it for read. When this is done the physics thread will not be allowed to swap the buffers so external reads are safe. Physics code can use GetWritable to get access to the write buffer, no locks are performed here as the lock is only required from the physics side when swapping the buffers. No external thread should ever attempt to swap the buffer. Only the owning thread
template<typename ResourceType> class TChaosReadWriteResource