Added method for getting default module state and protect agains a

read/write race for child_modules_.

BUG=2731
TEST=tsan
R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/5919005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5306 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org
2013-12-17 08:30:40 +00:00
parent 9df6674b26
commit e6b871bb29
2 changed files with 21 additions and 95 deletions

View File

@ -418,6 +418,8 @@ class ModuleRtpRtcpImpl : public RtpRtcp {
void set_rtt_ms(uint32_t rtt_ms);
uint32_t rtt_ms() const;
bool IsDefaultModule() const;
int32_t id_;
const bool audio_;
bool collision_detected_;