| 2612 | }; |
| 2613 | |
| 2614 | static pthread_key_t CreateKey() { |
| 2615 | pthread_key_t key; |
| 2616 | // When a thread exits, DeleteThreadLocalValue() will be called on |
| 2617 | // the object managed for that thread. |
| 2618 | GTEST_CHECK_POSIX_SUCCESS_( |
| 2619 | pthread_key_create(&key, &DeleteThreadLocalValue)); |
| 2620 | return key; |
| 2621 | } |
| 2622 | |
| 2623 | T* GetOrCreateValue() const { |
| 2624 | ThreadLocalValueHolderBase* const holder = |
nothing calls this directly
no outgoing calls
no test coverage detected