Rename SDL mutex, semaphore and condition variable types to match SDL 3.0 naming convention

This commit is contained in:
Sam Lantinga
2023-04-28 07:31:12 -07:00
parent 61c0c009ab
commit 87ad71f9b2
75 changed files with 452 additions and 422 deletions

View File

@@ -110,7 +110,7 @@ SDL_COMPILE_TIME_ASSERT(size, CountTo_GreaterThanZero); /* check for rollover */
static SDL_AtomicInt good = { 42 };
static atomicValue bad = 42;
static SDL_AtomicInt threadsRunning;
static SDL_sem *threadDone;
static SDL_Semaphore *threadDone;
static int SDLCALL adder(void *junk)
{
@@ -285,7 +285,7 @@ typedef struct
SDL_AtomicInt active;
/* Only needed for the mutex test */
SDL_mutex *mutex;
SDL_Mutex *mutex;
} SDL_EventQueue;

View File

@@ -21,7 +21,7 @@
#include <SDL3/SDL_main.h>
#include <SDL3/SDL_test.h>
static SDL_mutex *mutex = NULL;
static SDL_Mutex *mutex = NULL;
static SDL_threadID mainthread;
static SDL_AtomicInt doterminate;
static int nb_threads = 6;

View File

@@ -18,7 +18,7 @@
#include <SDL3/SDL_main.h>
#include <SDL3/SDL_test.h>
static SDL_rwlock *rwlock = NULL;
static SDL_RWLock *rwlock = NULL;
static SDL_threadID mainthread;
static SDL_AtomicInt doterminate;
static int nb_threads = 6;

View File

@@ -24,7 +24,7 @@
#define NUM_OVERHEAD_OPS 10000
#define NUM_OVERHEAD_OPS_MULT 10
static SDL_sem *sem;
static SDL_Semaphore *sem;
static int alive;
typedef struct Thread_State