test/testhread.c
changeset 2779 4436464c4f51
parent 1895 c121d94672cb
child 3578 0d1b16ee0bca
     1.1 --- a/test/testhread.c	Sat Nov 22 06:59:22 2008 +0000
     1.2 +++ b/test/testhread.c	Mon Nov 24 00:18:42 2008 +0000
     1.3 @@ -63,22 +63,12 @@
     1.4      SDL_WaitThread(thread, NULL);
     1.5  
     1.6      alive = 1;
     1.7 +    signal(SIGTERM, killed);
     1.8      thread = SDL_CreateThread(ThreadFunc, "#2");
     1.9      if (thread == NULL) {
    1.10          fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
    1.11          quit(1);
    1.12      }
    1.13 -    SDL_Delay(5 * 1000);
    1.14 -    printf("Killing thread #2\n");
    1.15 -    SDL_KillThread(thread);
    1.16 -
    1.17 -    alive = 1;
    1.18 -    signal(SIGTERM, killed);
    1.19 -    thread = SDL_CreateThread(ThreadFunc, "#3");
    1.20 -    if (thread == NULL) {
    1.21 -        fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
    1.22 -        quit(1);
    1.23 -    }
    1.24      raise(SIGTERM);
    1.25  
    1.26      SDL_Quit();                 /* Never reached */