comparison test/testhread.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents be9c9c8f6d53
children 782fd950bd46 c121d94672cb
comparison
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
15 { 15 {
16 SDL_Quit(); 16 SDL_Quit();
17 exit(rc); 17 exit(rc);
18 } 18 }
19 19
20 int ThreadFunc(void *data) 20 int SDLCALL ThreadFunc(void *data)
21 { 21 {
22 printf("Started thread %s: My thread id is %u\n", 22 printf("Started thread %s: My thread id is %u\n",
23 (char *)data, SDL_ThreadID()); 23 (char *)data, SDL_ThreadID());
24 while ( alive ) { 24 while ( alive ) {
25 printf("Thread '%s' is alive!\n", (char *)data); 25 printf("Thread '%s' is alive!\n", (char *)data);