Lines Matching defs:thread
241 pthread_t *thread = malloc(sizeof(*thread));
242 if (!thread)
247 r = pthread_create(thread, NULL, amdgpu_nop_cs, NULL);
250 /* Give thread enough time to start*/
252 return thread;
255 static void amdgpu_destroy_cs_thread(pthread_t *thread)
261 pthread_join(*thread, &status);
264 free(thread);
271 pthread_t *thread = NULL;
277 thread = amdgpu_create_cs_thread();
278 CU_ASSERT_NOT_EQUAL(thread, NULL);
285 amdgpu_destroy_cs_thread(thread);