| 437 | } |
| 438 | |
| 439 | static void usleep_thread_impl(PoolData2* data) { |
| 440 | if (NULL == bthread_getspecific(data->key)) { |
| 441 | PoolData2* data_new = new PoolData2(); |
| 442 | ASSERT_EQ(0, bthread_setspecific(data->key, data_new)); |
| 443 | } |
| 444 | bthread_usleep(1000L); |
| 445 | int length = get_thread_local_keytable_list_length(&test_pool); |
| 446 | ASSERT_LE((size_t)length, bthread::FLAGS_key_table_list_size); |
| 447 | } |
| 448 | |
| 449 | static void* usleep_thread(void* args) { |
| 450 | usleep_thread_impl((PoolData2*)args); |
no test coverage detected