From 53e45f6540066115332a1471b98182b3baa82feb Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 14 Apr 2019 08:57:17 -0700 Subject: Added comments about Fence thread safety; minor code improvements --- Graphics/GraphicsEngine/interface/Fence.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/Fence.h b/Graphics/GraphicsEngine/interface/Fence.h index 7a7ee8c5..d2a27473 100644 --- a/Graphics/GraphicsEngine/interface/Fence.h +++ b/Graphics/GraphicsEngine/interface/Fence.h @@ -54,6 +54,10 @@ public: virtual const FenceDesc& GetDesc()const override = 0; /// Returns the last completed value signaled by the GPU + + /// \remarks This method is not thread safe (even if the fence object is protected by mutex) + /// and must only be called by the same thread that signals the fence via + /// IDeviceContext::SignalFence(). virtual Uint64 GetCompletedValue() = 0; /// Resets the fence to the specified value. -- cgit v1.2.3