d3d11memory: Remove unnecessary locking
authorSeungha Yang <seungha@centricular.com>
Sun, 7 Aug 2022 13:41:07 +0000 (22:41 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 8 Aug 2022 20:13:51 +0000 (20:13 +0000)
commita75e88fdd2021d4dd54edfad33a0172113132383
tree2b0ce8343fb1858302c2b95a01d073bb969e92b5
parentecb12a05b8fe15d2053f9e6229d9a31f455c1a14
d3d11memory: Remove unnecessary locking

* memory map/unmap is already protected by d3d11 device lock.
  Don't need to take another memory lock.
* Use WIN32 critical section and slim reader/writer lock APIs
  directly instead of GLib wrappers.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2848>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11_private.h
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp