Lines Matching defs:thread
245 pthread_t *thread = malloc(sizeof(*thread));
246 if (!thread)
251 r = pthread_create(thread, NULL, amdgpu_nop_cs, NULL);
254 /* Give thread enough time to start*/
256 return thread;
259 static void amdgpu_destroy_cs_thread(pthread_t *thread)
265 pthread_join(*thread, &status);
268 free(thread);
275 pthread_t *thread = NULL;
281 thread = amdgpu_create_cs_thread();
282 CU_ASSERT_NOT_EQUAL(thread, NULL);
289 amdgpu_destroy_cs_thread(thread);