mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
+3
-2
@@ -20,6 +20,7 @@
|
|||||||
#include "SDL_test.h"
|
#include "SDL_test.h"
|
||||||
|
|
||||||
static SDL_TLSID tls;
|
static SDL_TLSID tls;
|
||||||
|
static SDL_Thread *thread = NULL;
|
||||||
static SDL_atomic_t alive;
|
static SDL_atomic_t alive;
|
||||||
static int testprio = 0;
|
static int testprio = 0;
|
||||||
static SDLTest_CommonState *state;
|
static SDLTest_CommonState *state;
|
||||||
@@ -80,13 +81,13 @@ killed(int sig)
|
|||||||
SDL_Log("Killed with SIGTERM, waiting 5 seconds to exit\n");
|
SDL_Log("Killed with SIGTERM, waiting 5 seconds to exit\n");
|
||||||
SDL_Delay(5 * 1000);
|
SDL_Delay(5 * 1000);
|
||||||
SDL_AtomicSet(&alive, 0);
|
SDL_AtomicSet(&alive, 0);
|
||||||
|
SDL_WaitThread(thread, NULL);
|
||||||
quit(0);
|
quit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i = 1;
|
int i;
|
||||||
SDL_Thread *thread;
|
|
||||||
|
|
||||||
state = SDLTest_CommonCreateState(argv, 0);
|
state = SDLTest_CommonCreateState(argv, 0);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
|
|||||||
Reference in New Issue
Block a user