mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-26 08:31:39 +00:00
Updated source to match SDL function prototype style
This commit is contained in:
@@ -218,8 +218,7 @@ static const SDL_cond_impl_t SDL_cond_impl_generic = {
|
||||
&SDL_CondWaitTimeout_generic,
|
||||
};
|
||||
|
||||
SDL_cond *
|
||||
SDL_CreateCond(void)
|
||||
SDL_cond *SDL_CreateCond(void)
|
||||
{
|
||||
if (SDL_cond_impl_active.Create == NULL) {
|
||||
/* Default to generic implementation, works with all mutex implementations */
|
||||
|
||||
@@ -243,8 +243,7 @@ static const SDL_mutex_impl_t SDL_mutex_impl_cs = {
|
||||
* Runtime selection and redirection
|
||||
*/
|
||||
|
||||
SDL_mutex *
|
||||
SDL_CreateMutex(void)
|
||||
SDL_mutex *SDL_CreateMutex(void)
|
||||
{
|
||||
if (SDL_mutex_impl_active.Create == NULL) {
|
||||
/* Default to fallback implementation */
|
||||
|
||||
@@ -377,8 +377,7 @@ static const SDL_sem_impl_t SDL_sem_impl_kern = {
|
||||
* Runtime selection and redirection
|
||||
*/
|
||||
|
||||
SDL_sem *
|
||||
SDL_CreateSemaphore(Uint32 initial_value)
|
||||
SDL_sem *SDL_CreateSemaphore(Uint32 initial_value)
|
||||
{
|
||||
if (SDL_sem_impl_active.Create == NULL) {
|
||||
/* Default to fallback implementation */
|
||||
@@ -436,8 +435,7 @@ int SDL_SemWait(SDL_sem *sem)
|
||||
return SDL_sem_impl_active.Wait(sem);
|
||||
}
|
||||
|
||||
Uint32
|
||||
SDL_SemValue(SDL_sem *sem)
|
||||
Uint32 SDL_SemValue(SDL_sem *sem)
|
||||
{
|
||||
return SDL_sem_impl_active.Value(sem);
|
||||
}
|
||||
|
||||
@@ -164,8 +164,7 @@ void SDL_SYS_SetupThread(const char *name)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_threadID
|
||||
SDL_ThreadID(void)
|
||||
SDL_threadID SDL_ThreadID(void)
|
||||
{
|
||||
return (SDL_threadID)GetCurrentThreadId();
|
||||
}
|
||||
|
||||
@@ -43,8 +43,7 @@
|
||||
static DWORD thread_local_storage = TLS_OUT_OF_INDEXES;
|
||||
static SDL_bool generic_local_storage = SDL_FALSE;
|
||||
|
||||
SDL_TLSData *
|
||||
SDL_SYS_GetTLSData(void)
|
||||
SDL_TLSData *SDL_SYS_GetTLSData(void)
|
||||
{
|
||||
if (thread_local_storage == TLS_OUT_OF_INDEXES && !generic_local_storage) {
|
||||
static SDL_SpinLock lock;
|
||||
|
||||
Reference in New Issue
Block a user