mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-23 15:56:00 +00:00
Rename SDL mutex, semaphore and condition variable types to match SDL 3.0 naming convention
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user