mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
Updated source to match SDL function prototype style
This commit is contained in:
@@ -206,8 +206,7 @@ static const SDL_cond_impl_t SDL_cond_impl_generic = {
|
||||
};
|
||||
#endif
|
||||
|
||||
SDL_Condition *
|
||||
SDL_CreateCondition(void)
|
||||
SDL_Condition *SDL_CreateCondition(void)
|
||||
{
|
||||
if (SDL_cond_impl_active.Create == NULL) {
|
||||
const SDL_cond_impl_t *impl = NULL;
|
||||
|
||||
@@ -220,8 +220,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 */
|
||||
|
||||
@@ -328,8 +328,7 @@ static const SDL_sem_impl_t SDL_sem_impl_kern = {
|
||||
* Runtime selection and redirection
|
||||
*/
|
||||
|
||||
SDL_Semaphore *
|
||||
SDL_CreateSemaphore(Uint32 initial_value)
|
||||
SDL_Semaphore *SDL_CreateSemaphore(Uint32 initial_value)
|
||||
{
|
||||
if (SDL_sem_impl_active.Create == NULL) {
|
||||
/* Default to fallback implementation */
|
||||
|
||||
@@ -162,8 +162,7 @@ void SDL_SYS_SetupThread(const char *name)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_threadID
|
||||
SDL_ThreadID(void)
|
||||
SDL_threadID SDL_ThreadID(void)
|
||||
{
|
||||
return (SDL_threadID)GetCurrentThreadId();
|
||||
}
|
||||
|
||||
@@ -42,8 +42,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