Commit d67d48ea authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 1

Consistently reference an internal struct as a struct

Summary: That way the mismatch warning can stay as an error.

Reviewed By: yfeldblum

Differential Revision: D3613761

fbshipit-source-id: 6e0ee42c658d95786f578f6500aba113c00d8f77
parent cdcb98c4
...@@ -152,7 +152,7 @@ struct ThreadEntry { ...@@ -152,7 +152,7 @@ struct ThreadEntry {
constexpr uint32_t kEntryIDInvalid = std::numeric_limits<uint32_t>::max(); constexpr uint32_t kEntryIDInvalid = std::numeric_limits<uint32_t>::max();
class PthreadKeyUnregisterTester; struct PthreadKeyUnregisterTester;
/** /**
* We want to disable onThreadExit call at the end of shutdown, we don't care * We want to disable onThreadExit call at the end of shutdown, we don't care
...@@ -193,7 +193,7 @@ class PthreadKeyUnregister { ...@@ -193,7 +193,7 @@ class PthreadKeyUnregister {
* usage. * usage.
*/ */
constexpr PthreadKeyUnregister() : lock_(), size_(0), keys_() { } constexpr PthreadKeyUnregister() : lock_(), size_(0), keys_() { }
friend class folly::threadlocal_detail::PthreadKeyUnregisterTester; friend struct folly::threadlocal_detail::PthreadKeyUnregisterTester;
void registerKeyImpl(pthread_key_t key) { void registerKeyImpl(pthread_key_t key) {
MSLGuard lg(lock_); MSLGuard lg(lock_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment