st/wgl: re-implement stw_device::ctx_mutex with CRITICAL_SECTION
authorBrian Paul <brianp@vmware.com>
Tue, 10 Nov 2015 21:10:45 +0000 (14:10 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 12 Nov 2015 18:21:24 +0000 (11:21 -0700)
commitfa30de7643ca6c70ac2661684b22f7b220a40b0b
treef8d727bb6bdc8e8369d70fae2022eab308d45893
parenta02385cd691df9dd35844a727350db72b17f586b
st/wgl: re-implement stw_device::ctx_mutex with CRITICAL_SECTION

This is Windows-only code so we can use the native Win32 functions for
critical sections.  This will also allow us to (cleanly) add some mutex
check/debug code in subsequent patches.

Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/stw_context.c
src/gallium/state_trackers/wgl/stw_device.c
src/gallium/state_trackers/wgl/stw_device.h