| 2051 | }; |
| 2052 | |
| 2053 | static pthread_key_t CreateKey() { |
| 2054 | pthread_key_t key; |
| 2055 | // When a thread exits, DeleteThreadLocalValue() will be called on |
| 2056 | // the object managed for that thread. |
| 2057 | GTEST_CHECK_POSIX_SUCCESS_( |
| 2058 | pthread_key_create(&key, &DeleteThreadLocalValue)); |
| 2059 | return key; |
| 2060 | } |
| 2061 | |
| 2062 | T* GetOrCreateValue() const { |
| 2063 | ThreadLocalValueHolderBase* const holder = |
no outgoing calls
no test coverage detected