Lines Matching defs:thread
22 /* Set the child thread error string */
29 printf("Child thread error string: %s\n", SDL_GetError());
35 SDL_Thread *thread;
43 /* Set the error value for the main thread */
47 thread = SDL_CreateThread(ThreadFunc, "#1");
48 if ( thread == NULL ) {
49 fprintf(stderr, "Couldn't create thread: %s\n", SDL_GetError());
53 printf("Waiting for thread #1\n");
55 SDL_WaitThread(thread, NULL);
57 printf("Main thread error string: %s\n", SDL_GetError());