diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-14 15:57:17 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-14 15:57:17 +0000 |
| commit | 53e45f6540066115332a1471b98182b3baa82feb (patch) | |
| tree | 2374329947d5eb318dc72e9fc3d2def0011aba2b /Graphics/GraphicsEngine | |
| parent | Implemented generate PSO cache warmup when texture view is created (diff) | |
| download | DiligentCore-53e45f6540066115332a1471b98182b3baa82feb.tar.gz DiligentCore-53e45f6540066115332a1471b98182b3baa82feb.zip | |
Added comments about Fence thread safety; minor code improvements
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/Fence.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. |
