mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 21:14:43 +00:00
Updated source to match SDL function prototype style
This commit is contained in:
@@ -39,8 +39,7 @@ static TInt NewMutex(const TDesC &aName, TAny *aPtr1, TAny *)
|
||||
}
|
||||
|
||||
/* Create a mutex */
|
||||
SDL_Mutex *
|
||||
SDL_CreateMutex(void)
|
||||
SDL_Mutex *SDL_CreateMutex(void)
|
||||
{
|
||||
RMutex rmutex;
|
||||
|
||||
@@ -83,8 +82,7 @@ int SDL_LockMutex(SDL_Mutex *mutex) SDL_NO_THREAD_SAFETY_ANALYSIS /* clang doesn
|
||||
|
||||
/* Try to lock the mutex */
|
||||
#if 0
|
||||
int
|
||||
SDL_TryLockMutex(SDL_Mutex *mutex)
|
||||
int SDL_TryLockMutex(SDL_Mutex *mutex)
|
||||
{
|
||||
if (mutex == NULL)
|
||||
{
|
||||
|
||||
@@ -75,8 +75,7 @@ static void WaitAll(SDL_Semaphore *sem)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Semaphore *
|
||||
SDL_CreateSemaphore(Uint32 initial_value)
|
||||
SDL_Semaphore *SDL_CreateSemaphore(Uint32 initial_value)
|
||||
{
|
||||
RSemaphore s;
|
||||
TInt status = CreateUnique(NewSema, &s, &initial_value);
|
||||
|
||||
@@ -78,8 +78,7 @@ void SDL_SYS_SetupThread(const char *name)
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_threadID
|
||||
SDL_ThreadID(void)
|
||||
SDL_threadID SDL_ThreadID(void)
|
||||
{
|
||||
RThread current;
|
||||
TThreadId id = current.Id();
|
||||
|
||||
Reference in New Issue
Block a user