From 663eae9800f7907333775b9c13c85357d05c33d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Pottier?= Date: Sat, 26 Aug 2023 09:57:30 +0200 Subject: [PATCH] thread: change variable name before it become unallowed (#529) --- thread.c.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thread.c.v b/thread.c.v index 0aada1d3..e4069f4a 100644 --- a/thread.c.v +++ b/thread.c.v @@ -108,15 +108,15 @@ pub fn create_thread_with_stack_size(func ThreadFunction, const_name &char, cons return unsafe { nil } } -fn C.SDL_GetThreadName(thread &C.SDL_Thread) &char +fn C.SDL_GetThreadName(pthread &C.SDL_Thread) &char // get_thread_name gets the thread name, as it was specified in SDL_CreateThread(). // This function returns a pointer to a UTF-8 string that names the // specified thread, or NULL if it doesn't have a name. This is internal // memory, not to be free()'d by the caller, and remains valid until the // specified thread is cleaned up by SDL_WaitThread(). -pub fn get_thread_name(thread &Thread) &char { - return C.SDL_GetThreadName(thread) +pub fn get_thread_name(pthread &Thread) &char { + return C.SDL_GetThreadName(pthread) } fn C.SDL_ThreadID() C.SDL_threadID