Skip to content

Commit

Permalink
thread: change variable name before it become unallowed (vlang#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
PottierLoic authored and larpon committed Aug 26, 2023
1 parent b0bf89e commit a6483ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thread.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ 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().
//
Expand All @@ -158,8 +158,8 @@ fn C.SDL_GetThreadName(thread &C.SDL_Thread) &char
// NULL if it doesn't have a name.
//
// See also: SDL_CreateThread
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
Expand Down

0 comments on commit a6483ec

Please sign in to comment.