test/testerror.c
changeset 3578 0d1b16ee0bca
parent 1895 c121d94672cb
child 5535 96594ac5fd1a
equal deleted inserted replaced
3577:72024425b437 3578:0d1b16ee0bca
    20 
    20 
    21 int SDLCALL
    21 int SDLCALL
    22 ThreadFunc(void *data)
    22 ThreadFunc(void *data)
    23 {
    23 {
    24     /* Set the child thread error string */
    24     /* Set the child thread error string */
    25     SDL_SetError("Thread %s (%d) had a problem: %s",
    25     SDL_SetError("Thread %s (%lu) had a problem: %s",
    26                  (char *) data, SDL_ThreadID(), "nevermind");
    26                  (char *) data, SDL_ThreadID(), "nevermind");
    27     while (alive) {
    27     while (alive) {
    28         printf("Thread '%s' is alive!\n", (char *) data);
    28         printf("Thread '%s' is alive!\n", (char *) data);
    29         SDL_Delay(1 * 1000);
    29         SDL_Delay(1 * 1000);
    30     }
    30     }