| 2421 | }; |
| 2422 | |
| 2423 | static pthread_key_t CreateKey() { |
| 2424 | pthread_key_t key; |
| 2425 | // When a thread exits, DeleteThreadLocalValue() will be called on |
| 2426 | // the object managed for that thread. |
| 2427 | GTEST_CHECK_POSIX_SUCCESS_( |
| 2428 | pthread_key_create(&key, &DeleteThreadLocalValue)); |
| 2429 | return key; |
| 2430 | } |
| 2431 | |
| 2432 | T* GetOrCreateValue() const { |
| 2433 | ThreadLocalValueHolderBase* const holder = |
nothing calls this directly
no outgoing calls
no test coverage detected