Searched refs:test_key (Results 1 – 2 of 2) sorted by relevance
| /llvm-project-15.0.7/compiler-rt/lib/asan/tests/ |
| H A D | asan_mac_test.cpp | 187 void *TSDAllocWorker(void *test_key) { in TSDAllocWorker() argument 188 if (test_key) { in TSDAllocWorker() 190 pthread_setspecific(*(pthread_key_t*)test_key, mem); in TSDAllocWorker() 197 pthread_key_t test_key; in TEST() local 198 pthread_key_create(&test_key, CallFreeOnWorkqueue); in TEST() 199 PTHREAD_CREATE(&th, NULL, TSDAllocWorker, &test_key); in TEST() 201 pthread_key_delete(test_key); in TEST()
|
| H A D | asan_test.cpp | 163 void *TSDWorker(void *test_key) { in TSDWorker() argument 164 if (test_key) { in TSDWorker() 165 pthread_setspecific(*(pthread_key_t*)test_key, (void*)0xfeedface); in TSDWorker() 186 pthread_key_t test_key; in TEST() local 187 pthread_key_create(&test_key, TSDDestructor); in TEST() 188 PTHREAD_CREATE(&th, NULL, TSDWorker, &test_key); in TEST() 190 pthread_key_delete(test_key); in TEST()
|