diff options
author | Abseil Team <absl-team@google.com> | 2022-12-21 11:58:44 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-21 12:00:11 -0800 |
commit | de8322344a06067b02ab38616d267f1c75aa2514 (patch) | |
tree | 58a43d1ae6248be6e172c6eb3b962f62b7a35b37 | |
parent | 6a876051b118c86e8bfa51961270055da5948813 (diff) |
Remove unneeded "friends" from KernelTimeout.
PiperOrigin-RevId: 496974198
Change-Id: I73b4013a2ad9fd37650d788cbd1e758b327b59d2
-rw-r--r-- | absl/synchronization/internal/kernel_timeout.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/absl/synchronization/internal/kernel_timeout.h b/absl/synchronization/internal/kernel_timeout.h index 020472a0..f5c2c0ef 100644 --- a/absl/synchronization/internal/kernel_timeout.h +++ b/absl/synchronization/internal/kernel_timeout.h @@ -19,8 +19,8 @@ // Constructible from a absl::Time (for a timeout to be respected) or {} // (for "no timeout".) // This is a private low-level API for use by a handful of low-level -// components that are friends of this class. Higher-level components -// should build APIs based on absl::Time and absl::Duration. +// components. Higher-level components should build APIs based on +// absl::Time and absl::Duration. #ifndef ABSL_SYNCHRONIZATION_INTERNAL_KERNEL_TIMEOUT_H_ #define ABSL_SYNCHRONIZATION_INTERNAL_KERNEL_TIMEOUT_H_ @@ -39,7 +39,6 @@ namespace absl { ABSL_NAMESPACE_BEGIN namespace synchronization_internal { -class Futex; class Waiter; class KernelTimeout { @@ -124,10 +123,9 @@ class KernelTimeout { } return 0; } -#endif - friend class Futex; friend class Waiter; +#endif }; inline struct timespec KernelTimeout::MakeAbsTimespec() const { |