summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Kohei Otsuka <13173186+rjhcnf@users.noreply.github.com>2020-11-05 18:13:58 +0100
committerGravatar GitHub <noreply@github.com>2020-11-05 12:13:58 -0500
commit2e5f2bcfd9adef0a40cbfdc7d92e24e97dad8776 (patch)
treedad718c4bda7e75cebef44a77472d5881f4499d2
parente9e9b9fc74388482ab748cad33cd9732a2b75d31 (diff)
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
-rw-r--r--absl/base/internal/low_level_scheduling.h5
1 files changed, 2 insertions, 3 deletions
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;
};
//------------------------------------------------------------------------------