Henri Verbeet : vkd3d-common: Get rid of InterlockedDecrement().
Module: vkd3d Branch: master Commit: 532e902a5630c8ac606c06bd25b1bcbab14f9dc3 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/532e902a5630c8ac606c06bd25b1bc... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Jan 30 12:59:02 2024 +0100 vkd3d-common: Get rid of InterlockedDecrement(). --- include/private/vkd3d_common.h | 7 ------- tests/vkd3d_api.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/include/private/vkd3d_common.h b/include/private/vkd3d_common.h index 6f878cce..8d6e7b37 100644 --- a/include/private/vkd3d_common.h +++ b/include/private/vkd3d_common.h @@ -304,13 +304,6 @@ static inline uint32_t vkd3d_atomic_increment_u32(uint32_t volatile *x) return vkd3d_atomic_add_fetch_u32(x, 1); } -#ifndef _WIN32 -static inline LONG InterlockedDecrement(LONG volatile *x) -{ - return vkd3d_atomic_decrement_u32((uint32_t *)x); -} -#endif /* _WIN32 */ - static inline void vkd3d_parse_version(const char *version, int *major, int *minor) { *major = atoi(version); diff --git a/tests/vkd3d_api.c b/tests/vkd3d_api.c index 29948783..62e30b47 100644 --- a/tests/vkd3d_api.c +++ b/tests/vkd3d_api.c @@ -658,7 +658,7 @@ static ULONG STDMETHODCALLTYPE parent_Release(IUnknown *iface) { struct parent *parent = parent_from_IUnknown(iface); - return InterlockedDecrement((LONG *)&parent->refcount); + return vkd3d_atomic_decrement_u32(&parent->refcount); } static const struct IUnknownVtbl parent_vtbl =
participants (1)
-
Alexandre Julliard