mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-common: Add a Windows implementation of vkd3d_set_thread_name().
This commit is contained in:
committed by
Alexandre Julliard
parent
0ef04659c7
commit
963ea98a52
Notes:
Alexandre Julliard
2022-10-25 22:38:50 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/39
@@ -1685,15 +1685,6 @@ extern const char vkd3d_build[];
|
||||
|
||||
bool vkd3d_get_program_name(char program_name[PATH_MAX]);
|
||||
|
||||
static inline void vkd3d_set_thread_name(const char *name)
|
||||
{
|
||||
#if defined(HAVE_PTHREAD_SETNAME_NP_2)
|
||||
pthread_setname_np(pthread_self(), name);
|
||||
#elif defined(HAVE_PTHREAD_SETNAME_NP_1)
|
||||
pthread_setname_np(name);
|
||||
#endif
|
||||
}
|
||||
|
||||
VkResult vkd3d_set_vk_object_name_utf8(struct d3d12_device *device, uint64_t vk_object,
|
||||
VkDebugReportObjectTypeEXT vk_object_type, const char *name);
|
||||
HRESULT vkd3d_set_vk_object_name(struct d3d12_device *device, uint64_t vk_object,
|
||||
|
||||
Reference in New Issue
Block a user