Revert "Workaround Mac align bug for observer_ and crit_."
This reverts commit r8528 which should be safe after r8646. BUG= R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/40249004 Cr-Commit-Position: refs/heads/master@{#8648} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8648 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -52,11 +52,8 @@ class RegistrableCpuOveruseMetricsObserver : public CpuOveruseMetricsObserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// TODO(pbos): Figure out why observer_ needs to be declared above crit_ on
|
|
||||||
// Mac. tommi@ also ran into this while debugging weird critical-section
|
|
||||||
// related alignment issues. Pushing this as a workaround to unblock rolling.
|
|
||||||
CpuOveruseMetricsObserver* observer_ GUARDED_BY(crit_) = nullptr;
|
|
||||||
mutable rtc::CriticalSection crit_;
|
mutable rtc::CriticalSection crit_;
|
||||||
|
CpuOveruseMetricsObserver* observer_ GUARDED_BY(crit_) = nullptr;
|
||||||
CpuOveruseMetrics metrics_ GUARDED_BY(crit_);
|
CpuOveruseMetrics metrics_ GUARDED_BY(crit_);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user