From 2e5f2bcfd9adef0a40cbfdc7d92e24e97dad8776 Mon Sep 17 00:00:00 2001 From: Kohei Otsuka <13173186+rjhcnf@users.noreply.github.com> Date: Thu, 5 Nov 2020 18:13:58 +0100 Subject: moved deleted functions to public for better compiler errors. (#828) * Update low_level_scheduling.h * Update low_level_scheduling.h * Update low_level_scheduling.h * Update low_level_scheduling.h --- absl/base/internal/low_level_scheduling.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'absl') diff --git a/absl/base/internal/low_level_scheduling.h b/absl/base/internal/low_level_scheduling.h index 6ef79fbf..9baccc06 100644 --- a/absl/base/internal/low_level_scheduling.h +++ b/absl/base/internal/low_level_scheduling.h @@ -61,6 +61,8 @@ class SchedulingGuard { public: // Returns true iff the calling thread may be cooperatively rescheduled. static bool ReschedulingIsAllowed(); + SchedulingGuard(const SchedulingGuard&) = delete; + SchedulingGuard& operator=(const SchedulingGuard&) = delete; private: // Disable cooperative rescheduling of the calling thread. It may still @@ -101,9 +103,6 @@ class SchedulingGuard { friend class SchedulingHelper; friend class SpinLock; friend int absl::synchronization_internal::MutexDelay(int32_t c, int mode); - - SchedulingGuard(const SchedulingGuard&) = delete; - SchedulingGuard& operator=(const SchedulingGuard&) = delete; }; //------------------------------------------------------------------------------ -- cgit v1.2.3