| 74 | } |
| 75 | |
| 76 | TEST_F(BaiduThreadLocalTest, thread_local_keyword) { |
| 77 | pthread_t th[2]; |
| 78 | pthread_create(&th[0], NULL, foo, (void*)1); |
| 79 | pthread_create(&th[1], NULL, foo, (void*)2); |
| 80 | pthread_join(th[0], NULL); |
| 81 | pthread_join(th[1], NULL); |
| 82 | } |
| 83 | |
| 84 | void* yell(void*) { |
| 85 | YellObj* p = butil::get_thread_local<YellObj>(); |
nothing calls this directly
no test coverage detected