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
pull/842/head
Kohei Otsuka 4 years ago committed by GitHub
parent e9e9b9fc74
commit 2e5f2bcfd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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;
};
//------------------------------------------------------------------------------

Loading…
Cancel
Save