| 112 | } |
| 113 | |
| 114 | void* THreadKeyCreateAndDeleteFunc(void*) { |
| 115 | while (!g_stopped) { |
| 116 | ThreadKey key; |
| 117 | EXPECT_EQ(0, butil::thread_key_create(key, NULL)); |
| 118 | EXPECT_TRUE(!KEY_UNUSED(key._seq)); |
| 119 | EXPECT_EQ(0, butil::thread_key_delete(key)); |
| 120 | } |
| 121 | return NULL; |
| 122 | } |
| 123 | |
| 124 | TEST(ThreadLocalTest, thread_key_create_and_delete) { |
| 125 | LOG(INFO) << "numeric_limits<uint32_t>::max()=" << std::numeric_limits<uint32_t>::max(); |
nothing calls this directly
no test coverage detected