| 379 | } |
| 380 | |
| 381 | static void pool_dtor(void* tls){ |
| 382 | PoolData* data = (PoolData*)tls; |
| 383 | // Should already be set NULL. |
| 384 | ASSERT_EQ(NULL, bthread_getspecific(data->key)); |
| 385 | if (++data->seq < data->end_seq){ |
| 386 | ASSERT_EQ(0, bthread_setspecific(data->key, data)); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | TEST(KeyTest, using_pool) { |
| 391 | bthread_key_t key; |
nothing calls this directly
no test coverage detected