Home | History | Annotate | Download | only in test

Lines Matching defs:thread

36     SDL_TLSSet(tls, "baby thread", NULL);
37 SDL_Log("Started thread %s: My thread id is %lu, thread data = %s\n",
40 SDL_Log("Thread '%s' is alive!\n", (char *) data);
43 SDL_Log("Thread '%s' exiting!\n", (char *) data);
59 SDL_Thread *thread;
72 SDL_TLSSet(tls, "main thread", NULL);
73 SDL_Log("Main thread data initially: %s\n", (const char *)SDL_TLSGet(tls));
76 thread = SDL_CreateThread(ThreadFunc, "One", "#1");
77 if (thread == NULL) {
78 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create thread: %s\n", SDL_GetError());
82 SDL_Log("Waiting for thread #1\n");
84 SDL_WaitThread(thread, NULL);
86 SDL_Log("Main thread data finally: %s\n", (const char *)SDL_TLSGet(tls));
90 thread = SDL_CreateThread(ThreadFunc, "Two", "#2");
91 if (thread == NULL) {
92 SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create thread: %s\n", SDL_GetError());